commands: verify that DisableFlagsInUseLine is set for all commands
This replaces the DisableFlagsInUseLine call from the CLI with a test that verifies the option is set for all commands and subcommands, so that it doesn't have to be modified at runtime. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -490,6 +490,7 @@ func buildCmd(dockerCli command.Cli, rootOpts *rootOptions, debugger debuggerOpt
|
||||
ValidArgsFunction: func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
|
||||
return nil, cobra.ShellCompDirectiveFilterDirs
|
||||
},
|
||||
DisableFlagsInUseLine: true,
|
||||
}
|
||||
|
||||
var platformsDefault []string
|
||||
|
||||
Reference in New Issue
Block a user