Releases: at-grandpa/clim
Releases · at-grandpa/clim
0.3.2
- Fix for crystal version
0.25.0
0.3.1
- Add
custom_help
0.3.0
0.2.2
- Type definition is optional in
option
.
0.2.1
- fix macro
desc
usage
0.2.0
- (breaking-change) New Syntax.
- Option types
version
macro
0.1.5
- Add
alias_name
. - Fix Readme.
0.1.4
- Fix Error message.
- Add
ClimInvalidOptionException
. - Some refactoring.
- Add comment.
- Add spec case.
- Change variable/method name.
- Delete unnecessary code.
- etc ...
0.1.3
-
(breaking-change) Changed the argument
opts
of the run block fromClim::Options
toHash
.# [before] run do |opts, args| puts typeof(opts) # => Clim::Options puts typeof(opts.string["string-long-name"]) # => String puts typeof(opts.s["string-long-name"]) # => String end # [after] run do |opts, args| puts typeof(opts) # => Hash(String, Array(String) | Bool | String | Nil) puts opts["string-long-name"] # => print your option value. puts typeof(opts["string-long-name"]) # => (Array(String) | Bool | String | Nil) puts typeof(opts["string-long-name"].as(String)) # => String # puts opts["s"] # => ERROR: Missing hash key: "s" end
-
Deleted the
-h
option from the default setting. -
Some bug fixes and refactoring.
0.1.2
- Nilable options.