Class Getopt::Declare::Arg
In: lib/Getopt/Declare.rb
lib/Getopt/Declare2.rb
Parent: Object

Class used to handle other arguments (flags, etc)

Methods

Constants

Helpcmd = %w( -help --help -Help --Help -HELP --HELP -h -H )
Versioncmd = %w( -version --version -Version --Version -VERSION --VERSION -v -V )
Helpcmd = %w( -help --help -Help --Help -HELP --HELP -h -H )
Versioncmd = %w( -version --version -Version --Version -VERSION --VERSION -v -V )

Attributes

actions  [RW] 
actions  [RW] 
args  [RW] 
args  [RW] 
desc  [RW] 
desc  [RW] 
ditto  [RW] 
ditto  [RW] 
flag  [RW] 
flag  [RW] 
id  [RW] 
id  [RW] 
nocase  [RW] 
nocase  [RW] 
repeatable  [RW] 
repeatable  [RW] 
required  [RW] 
required  [RW] 
requires  [RW] 
requires  [RW] 

Public Class methods

Create regex of help flags based on help shortcuts left

Create regex of help flags based on help shortcuts left

Return string with regex that avoids all flags in declaration

Return string with regex that avoids all flags in declaration

Return string with regex that matches any of the flags in declaration

Return string with regex that matches any of the flags in declaration

Create regex of version flags based on help shortcuts left

Create regex of version flags based on help shortcuts left

Public Instance methods

Return String with code to parse this argument (ie. flag)

Return String with code to parse this argument (ie. flag)

[Validate]