Menu
  • HOME
  • TAGS

Using Trollop for command line parsing in Ruby, how do I override the 'version' parameter

ruby,command-line-parsing,trollop

Define your option as anything other than :version then configure the :long and :short forms as version and v. opts = Trollop::options do opt :use_version, "The version to use. ie. 1.0.1", :long => 'version', :short => 'v', :type => String, :required => false end When you define the option as...