cli
cli copied to clipboard
Missing positional arguments fail parsing
When a command invocation is missing its trailing positional arguments, they are replaced with empty strings. When one of those arguments needs to be parsed as a bool or int, for example, parsing fails and the command exits with an error.
It looks like the intent of https://github.com/segmentio/cli/pull/25 was to default to the zero value for such arguments.