getOpt' checks "non-option options"
|Reported by:||nobody||Owned by:||nobody|
|Type of failure:||Test Case:|
|Related Tickets:||Differential Revisions:|
Description (last modified by panne)
When given RequireOrder the getOpt' function should not parse options following a non-option. But currently (as of version 6.4.1 of ghc) it does. E.g. when parsing with RequireOrder and if invalid-opt3 is not a recognized option then the following produces an error: progname --valid-opt1 --valid-opt2 non-opt --invalid-opt3 However, anything after non-opt should not be parsed. The problem can be fixed as follows: 164c164 < procNextOpt (NonOpt x) RequireOrder = (,x:rest,us,) --- > procNextOpt (NonOpt x) RequireOrder = (,x:rest,,) Best Sebastian
Change History (4)
comment:2 Changed 9 years ago by panne
- Architecture set to Unknown
- Description modified (diff)
- difficulty set to Unknown
- Operating System set to Unknown
- Resolution changed from None to fixed
- Status changed from assigned to closed
Note: See TracTickets for help on using tickets.