Message109423
I was suggesting a doc bug only if the current doc didn’t advertise clearly this way of combining nargs with positional arguments. Using “--” is most certainly standard and right,
Using “--” to explicitly signal positional arguments is most certainly right and standard, but people have to read about that for the first time somewhere. In a perfect world, that would be in their shell’s man page, but better add a word about it in the reference. The “--” marker is actually mentioned in one section: http://docs.python.org/dev/library/argparse#arguments-containing
I’m reopening, suggesting that a line be added to explain the standard “--” separator for use cases like Sergey’s. |
|
| Date |
User |
Action |
Args |
| 2010-07-06 20:33:54 | eric.araujo | set | recipients:
+ eric.araujo, eric.smith, docs@python, gray_hemp |
| 2010-07-06 20:33:54 | eric.araujo | set | messageid: <[email protected]> |
| 2010-07-06 20:33:52 | eric.araujo | link | issue9182 messages |
| 2010-07-06 20:33:52 | eric.araujo | create | |
|