get_one_gem_name() Instance Public methods Get a single gem name from the command line. Fail if there is no gem name or if there is more than one gem name given.
get_all_gem_names_and_versions() Instance Public methods Get all [gem, version] from the command line. An argument in the form gem:ver is pull apart into the gen name and version, respectively.
get_all_gem_names() Instance Public methods Get all gem names from the command line.
execute() Instance Public methods Override to provide command handling. options will be filled in with your parsed options, unparsed options will be left in options[:args]. See also: get_all_gem_names, get_one_gem_name, get_one_optional_argument
description() Instance Public methods Override to display a longer description of what this command does.
defaults_str() Instance Public methods Override to display the default values of the command options. (similar to arguments, but displays the default values). For example: def defaults_str --no-gems-first --no-all end
begins?(long, short) Instance Public methods True if long begins with the characters from short.
arguments() Instance Public methods Override to provide details of the arguments a command takes. It should return a left-justified string, one argument per line. For example: def usage "#{program_name} FILE [FILE ...]" end def arguments "FILE name of file to find" end
add_option(*opts) Instance Public methods Add a command-line option and handler to the command. See OptionParser#make_switch for an explanation of opts. handler will be called with two values, the value of the argument and the options hash. If the first argument of #add_option is a Symbol, it's used to group options in output. See `gem help list` for an example.
add_extra_args(args) Instance Public methods Adds extra args from ~/.gemrc
Page 2050 of 2275