Module Choice
In: lib/choice/parser.rb
lib/choice/version.rb
lib/choice/writer.rb
lib/choice/lazyhash.rb
lib/choice/option.rb
lib/choice.rb

Usage of this module is lovingly detailed in the README file.

Methods

[]   args_of   choices   option   options   options_from_hash   rest   separator  

Classes and Modules

Class Choice::LazyHash

Public Instance methods

Shortcut access to Choice.choices

Returns the arguments that follow an argument

Returns a hash representing options passed in via the command line.

The main method, which defines the options

Set options from a hash, shorthand style

Return an array representing the rest of the command line arguments

Separators are text displayed by —help within the options block.

[Validate]