File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ produces either the sum or the max::
4646Assuming the Python code above is saved into a file called ``prog.py ``, it can
4747be run at the command line and provides useful help messages::
4848
49- $ prog.py -h
49+ $ python prog.py -h
5050 usage: prog.py [-h] [--sum] N [N ...]
5151
5252 Process some integers.
@@ -61,15 +61,15 @@ be run at the command line and provides useful help messages::
6161When run with the appropriate arguments, it prints either the sum or the max of
6262the command-line integers::
6363
64- $ prog.py 1 2 3 4
64+ $ python prog.py 1 2 3 4
6565 4
6666
67- $ prog.py 1 2 3 4 --sum
67+ $ python prog.py 1 2 3 4 --sum
6868 10
6969
7070If invalid arguments are passed in, it will issue an error::
7171
72- $ prog.py a b c
72+ $ python prog.py a b c
7373 usage: prog.py [-h] [--sum] N [N ...]
7474 prog.py: error: argument N: invalid int value: 'a'
7575
You can’t perform that action at this time.
0 commit comments