method

new

Importance_1
v2_2_9 - Show latest stable - 0 notes - Class: Command
new(command, summary=nil, defaults={}) public

Initializes a generic gem command named command. summary is a short description displayed in `gem help commands`. defaults are the default options. Defaults should be mirrored in #defaults_str, unless there are none.

When defining a new command subclass, use add_option to add command-line switches.

Unhandled arguments (gem names, files, etc.) are left in options[:args].

Show source
Register or log in to add new notes.