class CLASP::Arguments::OptionArgument
Class that represents a parsed option
Attributes
(CLASP::OptionSpecification
) The specification matching the argument, or nil
(Object
, Hash) The extras associated with the argument
(Integer) The number of hyphens of the argument as it appeared in the command-line
(Integer) The command-line index of the argument
(String) The label of the argument as it appeared in the command-line
(String) The given name of the argument as it appeared in the command-line
(String) The given value of the option
(String) The resolved name of the argument
(????) The value of the option, which may be of a type other than string subject to the option specification's constraint
Public Instance Methods
- DEPRECATED
-
Use
argument_specification
# File lib/clasp/arguments.rb, line 208 def argument_alias; @argument_specification; end
A hash-code for this instance
# File lib/clasp/arguments.rb, line 233 def hash @arg.hash end
(String) The string form of the flag, which is the same as name
=value
# File lib/clasp/arguments.rb, line 239 def to_s "#{name}=#{value}" end