Results for: "OptionParser"

Returns error reason. Override this for I18N.

Parses self destructively in order and returns self containing the rest arguments left unparsed.

Parses self destructively in permutation mode and returns self containing the rest arguments left unparsed.

No documentation available
No documentation available
No documentation available

Iterates over each option, passing the option to the block.

Program name to be emitted in error message and default banner, defaults to $0.

No documentation available

Returns option summary list.

Creates an option from the given parameters params. See Parameters for New Options.

The block, if given, is the handler for the created option. When the option is encountered during command-line parsing, the block is called with the argument given for the option, if any. See Option Handlers.

Creates an option from the given parameters params. See Parameters for New Options.

The block, if given, is the handler for the created option. When the option is encountered during command-line parsing, the block is called with the argument given for the option, if any. See Option Handlers.

Creates an option from the given parameters params. See Parameters for New Options.

The block, if given, is the handler for the created option. When the option is encountered during command-line parsing, the block is called with the argument given for the option, if any. See Option Handlers.

No documentation available
No documentation available

Raises an exception if any arguments given.

Raises an exception if argument is not present.

Parses argument if given, or uses default value.

Returns nil if argument is not present or begins with ‘-’ and is not ‘-’.

Guesses argument style from arg. Returns corresponding OptionParser::Switch class (OptionalArgument, etc.).

No documentation available

Just initializes all instance variables.

See OptionParser.reject.

Inserts switch at the head of the list, and associates short, long and negated long options. Arguments are:

switch

OptionParser::Switch instance to be inserted.

short_opts

List of short style options.

long_opts

List of long style options.

nolong_opts

List of long style options with “no-” prefix.

prepend(switch, short_opts, long_opts, nolong_opts)

Appends switch at the tail of the list, and associates short, long and negated long options. Arguments are:

switch

OptionParser::Switch instance to be inserted.

short_opts

List of short style options.

long_opts

List of long style options.

nolong_opts

List of long style options with “no-” prefix.

append(switch, short_opts, long_opts, nolong_opts)
Search took: 7ms  ·  Total Results: 3967