micheal.w.wells at gmail.com
Fri Mar 22 17:03:02 CET 2013
In example 16.4.1, a script named 'prog.py' is given, and the user is told
that they may execute it from the command line like so: $ prog.py
My issue with this, is that it doesn't mention that the script starts with
a shebang or is made executable with chmod +x, and even then the command
would be $ ./prog.py.
A minor gripe, but I think that too much is assumed of the reader. For
Assuming the Python code above is saved into a file called prog.py, it can
be run at the command line and provides useful help messages:
$ prog.py -h
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the docs