cli icon indicating copy to clipboard operation
cli copied to clipboard

Missing positional arguments fail parsing

Open bhavanki opened this issue 2 years ago • 0 comments

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.

bhavanki avatar Sep 12 '23 20:09 bhavanki