Message111673
> arguments = *(positional-argument / option) [-- *(positional-argument)]
> positional-argument = string
> option = foo-option / bar-option
> foo-option = "--foo" string
> bar-option = "--bar"
Er, obviously positional arguments before the first ‘--’ can’t begin with a dash (I don’t think there’s any confusion over how those should work).
arguments = *(non-dash-positional-argument / option) ["--" *(positional-argument)]
non-dash-positional-argument = <string not beginning with "-">
positional-argument = string
The point was just that the grammar unambiguously allows the argument of --foo to be any string. |
|
Date |
User |
Action |
Args |
2010-07-26 23:18:01 | andersk | set | recipients:
+ andersk, bethard, eric.smith, r.david.murray, gdb, nelhage |
2010-07-26 23:18:01 | andersk | set | messageid: <1280186281.31.0.00394781535191.issue9334@psf.upfronthosting.co.za> |
2010-07-26 23:17:59 | andersk | link | issue9334 messages |
2010-07-26 23:17:59 | andersk | create | |
|