From: Neubyr Neubyr Date: 2012-05-16T00:03:07+09:00 Subject: Option Parser with an optional flag/switch for last argument I am using OptionParser to parse command-line options. I would like to run a program in following manner: $ multiply-by.rb --factor 3 4 $ 12 where last number '4' is an input argument which should not need any option flag/switch. Any hints on how can it be done? Is it possible with OptionParser or should I write my own option parser method? thanks, N -- Posted via http://www.ruby-forum.com/.