From: Patrick Bennett Date: 2002-08-01T00:45:16+09:00 Subject: Re: Question about GetoptLong Hugh Sasse Staff Elec Eng wrote: >Consuming all the options so they are out of the way is a feature >of the Getopt utils that I have seen, it means you can just use >ARGF and friends to plough through the supplied files. > It certainly makes sense for it to eat the options it understands, but I don't see any reason why it should (always) remove options it doesn't understand and provide no way of getting the option back for later processing. >So, I'm suggesting "have 'eat the options' as an on/off feature". > That's certainly a start. :> That, plus the exception that GetoptLong throws (I think the fact that it raises exceptions should be optional as well) should contain an attribute with the option that it choked on.