Closed whalemare closed 4 years ago
@vilic Some comments maybe? What I do wrong?
@whalemare I think the behavior is expected. You might want to use options instead of params in this case.
https://github.com/vilic/clime#parameter-types-and-options-schema
Thus use command --first
or command --second
or command --first --second
Another option is to use @params() platforms
in the same example and do something like: platforms.includes('ios')
or platforms.includes('android')
Ok, thank you!
When I have 2 not-required params in my command, parsed only first one.
Steps to reproduce:
second
ts-node ./src/index.ts second
Expected
But have
Sample: https://github.com/lamantin-group/publish/blob/bug/clime/src/commands/default.ts#L20