Class Main::GetoptLong
In: lib/main/getoptlong.rb
Parent: Object

Methods

Classes and Modules

Class Main::GetoptLong::AmbigousOption
Class Main::GetoptLong::InvalidOption
Class Main::GetoptLong::MissingArgument
Class Main::GetoptLong::NeedlessArgument

Constants

ORDERINGS = [REQUIRE_ORDER = 0, PERMUTE = 1, RETURN_IN_ORDER = 2]   Orderings.
ARGUMENT_FLAGS = [NO_ARGUMENT = 0, REQUIRED_ARGUMENT = 1, OPTIONAL_ARGUMENT = 2]   Argument flags.
STATUS_TERMINATED = 0, 1, 2

External Aliases

quiet -> quiet?
  `quiet?’ is an alias of `quiet’.
error -> error?
  `error?’ is an alias of `error’.

Attributes

error  [R]  Examine whether an option processing is failed.
ordering  [R]  Return ordering.
quiet  [W]  Set/Unset `quit’ mode.
quiet  [R]  Return the flag of `quiet’ mode.

Public Class methods

Public Instance methods

each_option()

Alias for each

Return an error message.

Get next option name and its argument as an array.

get_option()

Alias for get

Set ordering.

Termintate option processing.

Examine whether option processing is termintated or not.

Protected Instance methods

Set an error (protected).

[Validate]