cobra
cobra copied to clipboard
args: add new `UnknownCommandError` type
This commit makes unknown commands a proper error type so that the caller can check for this specific error type without having to do string comparisons.
This is useful in the context of https://github.com/spf13/cobra/issues/823