Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rpk: add cobra.NoArg to parent functions.
Cobra won't recognize unknown commands unless cobra.NoArg is set as an Arg validation parameter in the command definition. This means that running 'rpk cluster unknowncommand' won't return a 'unknown command' error, therefore, exit as a successful command execution. Now, cobra will return an 'unknown error' and exit with code 1.
- Loading branch information