File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff 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 ]
4040twelve_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
6262Twelve Days of Christmas
6363
6464optional 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```
You can’t perform that action at this time.
0 commit comments