Open denisdefreyne opened 6 years ago
Guys, has this feature been released?...
I'm getting an error on set default:
/.../ruby-2.5.1/lib/.../cri-2.15.0/lib/cri/command_dsl.rb:173:in
`param': unknown keyword: default (ArgumentError)
UPD...
Yeah, I guess not, here are no commits yet.
It would be great to have this feature. It will allow to make a parameter make as an optional one by setting empty value like nil
or ''
.
@andkirby It’s not implemented yet! This GitHub issue serves as a to-do item.
Idea: allow parameters to be defined with a default value. For example:
For simplicity, allow parameters with a default value to only appear at the end. The following would therefore not be possible:
I image that this restriction will be fine, because the CLI will become complicated to use otherwise anyway.