Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 33582a3

Browse files
committed
update docs
1 parent df133a4 commit 33582a3

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

13_twelve_days/README.md

Lines changed: 6 additions & 5 deletions
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)