[docs] /3/library/argparse.html#module-argparse

Micheal Wells micheal.w.wells at gmail.com
Fri Mar 22 17:03:02 CET 2013


An observation:

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
reference:



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...
URL: <http://mail.python.org/pipermail/docs/attachments/20130322/6dcb68ae/attachment.html>


More information about the docs mailing list