Message121891
Steven: From msg121850 I think the last two examples do not need the "--". Since there are no positional arguments, the "--" is not needed. However the following additional cases exist:
-x X [X ...] -y Y -- A B # since optionals might come in other order
Basically every of the three variable length classes need to be tested: ZeroOrOne, ZeroOrMore and OneOrMore. This might always come in a conflict with positional arguments needed afterward (even with optional positional arguments!).
BTW - I recognized the following seem to be supported:
for [-x [X ...]] -- [y ...]
the following input: a -x -- b
I would expect to be 'a' and 'b' positional arguments and the optional '-x' has no argument. However this seem not to work. Another issue or desired behavior? |
|
Date |
User |
Action |
Args |
2010-11-21 09:44:09 | Kotan | set | recipients:
+ Kotan, fdrake, bethard, eric.smith, eric.araujo, docs@python, gray_hemp |
2010-11-21 09:44:09 | Kotan | set | messageid: <1290332649.05.0.306123080407.issue9182@psf.upfronthosting.co.za> |
2010-11-21 09:44:06 | Kotan | link | issue9182 messages |
2010-11-21 09:44:06 | Kotan | create | |
|