File tree 1 file changed +6
-5
lines changed
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:
36
36
37
37
```
38
38
$ ./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 ]
40
40
twelve_days.py: error: --num "21" must be between 1 and 12
41
41
```
42
42
@@ -57,15 +57,16 @@ The program should respond to `-h` and `--help` with a usage:
57
57
58
58
```
59
59
$ ./twelve_days.py -h
60
- usage: twelve_days.py [-h] [-n int ] [-o str ]
60
+ usage: twelve_days.py [-h] [-n days ] [-o FILE ]
61
61
62
62
Twelve Days of Christmas
63
63
64
64
optional arguments:
65
65
-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'>)
69
70
```
70
71
71
72
```
You can’t perform that action at this time.
0 commit comments