From: nobu.nokada@... Date: 2002-08-01T22:51:24+09:00 Subject: Re: Question about GetoptLong Hi, At Thu, 1 Aug 2002 00:19:58 +0900, Patrick Bennett wrote: > >AFAIK, GetoptLong never eat non-option arguments regardless > >ordering mode. > > > Well with Ruby 1.6.6 it does. If I have XXXX -c -a and the GetoptLong > is set to only understand -c, then -a gets eaten. You need to call GetoptLong#terminate seeing "-c". > Unfortunately this solution will require the users to enter 'global' > options before the "command" (always), but at this point I think it's > something I may have to live with. Then, you need to remember global options, and append per-command options to them. Alternatively, you can use optparse.rb, it allows option definitions at multiple places. -- Nobu Nakada