# Table of Contents - getoptlong: Ruby Standard Library Documentation

## Classes and Modules

- GetoptLong
  - Options
  - Option Name and Aliases
  - Repetition
  - Treating Remaining Options as Arguments
  - Option Types
  - Option with Required Argument
  - Option with Optional Argument
  - Option with No Argument
  - ARGV
  - Ordering
  - PERMUTE Ordering
  - REQUIRE_ORDER Ordering
  - RETURN_IN_ORDER Ordering
  - Full Example
- GetoptLong::AmbiguousOption
- GetoptLong::Error
- GetoptLong::InvalidOption
- GetoptLong::MissingArgument
- GetoptLong::NeedlessArgument

## Methods

- ::new — GetoptLong
- #each — GetoptLong
- #each_option — GetoptLong
- #error_message — GetoptLong
- #get — GetoptLong
- #get_option — GetoptLong
- #ordering= — GetoptLong
- #set_error — GetoptLong
- #set_options — GetoptLong
- #terminate — GetoptLong
- #terminated? — GetoptLong