cobra icon indicating copy to clipboard operation
cobra copied to clipboard

closes #2130 new command flag ErrorOnUnknownSubcommand

Open andremueller opened this issue 7 months ago • 5 comments

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

andremueller avatar Jul 08 '24 13:07 andremueller