cli
cli copied to clipboard
Go package providing high-level constructs for command-line tools.
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`,...
In tests, this would be helpful to get default values, and then override them with test-specific options.
I forgot to put quotes around my struct tags so no help text appeared. It might be nice if possible if there's an option to error in that case instead...
Using this library I was trying to figure out how to get access to the error returned from the command function. Along the way, I discovered that the error is...