- simplifying tests using heredocs
- minor documentation improvements
- canonicalised all whitespace (to SPACEs not TABs)
- added attribute
CLASP::Arguments#double_slash_index
- updated dependencies
- updated dependencies
- merging branches, to clear up last two changes
- CHANGES.md : improved markup
#action
attribute for flag and option specifications (which is used in libCLImate.Ruby, and can be used by any application)
- added typed values for options
- fix inconsistency in handling
default_value
behaviour
- restoring Ruby 1.9.3 compatibility
- documentation improvements
- fixed (ultimate) resolution of option argument specification
- fixed defect in
CLASP::Arguments::OptionArgument#==()
- now uses
CLASP::OptionSpecification#default_value
(if non-nil) when option is specified without value (e.g."myprog --opt= -f1 -f2"
,"myprog --opt"
) CLASP.show_usage()
now indicates default value in list of known values for option, and recognises the:default_indicator
option for changing the indicator from default of(default)
- documentation improvements
- preparatory refactoring
- added missing
argument_specification
attribute toCLASP::Arguments::FlagArgument
andCLASP::Arguments::OptionArgument
, along with deprecated backwards-compatibleargument_alias
- fixed some documentation typos
- added
CLASP::Arguments.load_specifications()
, which allows to load argument-specifications fromHash
or from YAML CLASP::Arguments.load()
now implemented in terms ofCLASP::Arguments.load_specifications()
CLASP::FlagSpecification
andCLASP::OptionSpecification
classes now compare against name (String
) in==()
- changed
*Alias
classes to*Specification
CLASP::Arguments#aliases
attribute is now changed to#specifications
, and a [DEPRECATED]#aliases
added
- added
CLASP::Arguments.load()
, which allows to load argument-specifications fromHash
or from YAML
- minor adjustment to test case such that the library now compatible with Ruby 1.9.3+