When given RequireOrder the getOpt' function should notparse optionsfollowing a non-option. But currently (as of version6.4.1 of ghc) itdoes. E.g. when parsing with RequireOrder and ifinvalid-opt3 is not arecognized option then the following produces an error: progname --valid-opt1 --valid-opt2 non-opt --invalid-opt3However, anything after non-opt should not be parsed. The problem can befixed as follows:164c164< procNextOpt (NonOpt x) RequireOrder =([],x:rest,us,[])---> procNextOpt (NonOpt x) RequireOrder =([],x:rest,[],[])BestSebastian