Bugs item #1339991, was opened at 2005-10-27 14:24 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1339991&group_id=8032
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: libraries/base Group: 6.4.1 Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: getOpt' checks "non-option options" Initial Comment: 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 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1339991&group_id=8032 _______________________________________________ Glasgow-haskell-bugs mailing list [email protected] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
