[docs] [issue20970] contradictory documentation for prog option of argparse

R. David Murray report at bugs.python.org
Wed Mar 19 13:38:37 CET 2014

R. David Murray added the comment:

You are correct, it is os.path.basename.

"base name or symlink" are not alternatives.  It would be the base name *of* the symlink if a symlink was used to invoke the program.  I'm not sure that introducing the concept of the symlink here is helpful...someone that knows about it will understand, someone that doesn't won't be sufficiently enlightened.  But I'm just one opinion.

Another way to clarify this would be to say "the name used by help will automatically change if the script is renamed".


Python tracker <report at bugs.python.org>

More information about the docs mailing list