Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 33582a3

Browse filesBrowse files
committed
update docs
1 parent df133a4 commit 33582a3
Copy full SHA for 33582a3

File tree

Expand file treeCollapse file tree

1 file changed

+6
-5
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-5
lines changed
Open diff view settings
Collapse file

‎13_twelve_days/README.md‎

Copy file name to clipboardExpand all lines: 13_twelve_days/README.md
+6-5Lines changed: 6 additions & 5 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ A number outside the range 1-12 should be rejected:
3636

3737
```
3838
$ ./twelve_days.py -n 21
39-
usage: twelve_days.py [-h] [-n int] [-o str]
39+
usage: twelve_days.py [-h] [-n days] [-o FILE]
4040
twelve_days.py: error: --num "21" must be between 1 and 12
4141
```
4242

@@ -57,15 +57,16 @@ The program should respond to `-h` and `--help` with a usage:
5757

5858
```
5959
$ ./twelve_days.py -h
60-
usage: twelve_days.py [-h] [-n int] [-o str]
60+
usage: twelve_days.py [-h] [-n days] [-o FILE]
6161
6262
Twelve Days of Christmas
6363
6464
optional arguments:
6565
-h, --help show this help message and exit
66-
-n int, --num int Number of days to sing (default: 12)
67-
-o str, --outfile str
68-
Outfile (STDOUT) (default: )
66+
-n days, --num days Number of days to sing (default: 12)
67+
-o FILE, --outfile FILE
68+
Outfile (default: <_io.TextIOWrapper name='<stdout>'
69+
mode='w' encoding='utf-8'>)
6970
```
7071

7172
```

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.