From: "Shareef J." Date: 2013-03-01T21:45:53+09:00 Subject: Is it possible to use OptionParser with short options such as -oo? Hi there, I'm trying to wrap a command line tool with a Ruby script in order to be able to clean up and validate any user supplied arguments before calling the tool. I'm therefore trying to use OptionParser to parse the command line arguments and pass them on to the tool after processing. However, the tool accepts short arguments that have multi character names. For example, '-o filename' and '-oo filename' where the double 'o' signifies that the file should be overwritten and not appended to. OptionParser can't cope with multi char short options so what can I do here? Can I extend OptionParser in any way or should I try and manually parse for these short options before calling option parser? Doesn't seem too clean that way. Cheers. -- Posted via http://www.ruby-forum.com/.