Message111673
| Author |
andersk |
| Recipients |
andersk, bethard, eric.smith, gdb, nelhage, r.david.murray |
| Date |
2010年07月26日.23:17:59 |
| SpamBayes Score |
0.0023551867 |
| Marked as misclassified |
No |
| Message-id |
<1280186281.31.0.00394781535191.issue9334@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> 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. |
|