New submission from Aaron Meurer:

I hope it's OK to report documentation issues on this tracker.  Reading 
http://docs.python.org/3.4/library/argparse.html#prog I had to do a double 
take. The documentation states, "By default, ArgumentParser objects uses 
sys.argv[0] to determine how to display the name of the program in help 
messages." The example then goes on to show it *not* using sys.argv[0] 
(sys.argv[0] in the second example would be 'subdir\myprogram.py'). 

Furthermore, even though the commands are apparently POSIX style, with a $ 
prompt and using cd, they use a backslash to access a subdirectory.

----------
assignee: docs@python
components: Documentation
messages: 213988
nosy: Aaron.Meurer, docs@python
priority: normal
severity: normal
status: open
title: contradictory documentation for prog option of argparse

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20970>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to