cobra
cobra copied to clipboard
closes #2130 new command flag ErrorOnUnknownSubcommand
Proposed a backward compatible solution to https://github.com/spf13/cobra/issues/2130
Hereto a new flag ErrorOnUnknownSubcommand
was added to the Command
struct. Unit tests were added accordingly (TestSubcommandExecuteMissingSubcommand and TestSubcommandExecuteMissingSubcommandWithErrorOnUnknownSubcommand.
Fixes #1156 #2130