Flowdock
method

add_option

Importance_1
v1_9_3_125 - Show latest stable - 0 notes - Class: Command
add_option(*opts) public

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.

Show source
Register or log in to add new notes.