Search code examples
rubycommand-line-argumentsoptparse

Multicharacter command-line arguments with a ruby script


Normally I would use optparse to parse command-line arguments. In this case I need arguments like -ssh or -telnet (basically I need the arguments from PuTTY). Optparse only supports single letter flags with a long version (e.g. -s and --ssh).

Is there another class like optparse?


Solution

  • Slop will work for me. Thanks to Boris Pilgun