Author andersk
Recipients andersk, bethard, eric.smith, gdb, nelhage, r.david.murray
Date 2010-07-26.23:17:59
SpamBayes Score 0.00235519
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.
History
Date User Action Args
2010-07-26 23:18:01andersksetrecipients: + andersk, bethard, eric.smith, r.david.murray, gdb, nelhage
2010-07-26 23:18:01andersksetmessageid: <1280186281.31.0.00394781535191.issue9334@psf.upfronthosting.co.za>
2010-07-26 23:17:59andersklinkissue9334 messages
2010-07-26 23:17:59anderskcreate