We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7adcffd + e23cbe4 commit b46beeaCopy full SHA for b46beea
pkg/cli/root.go
@@ -49,6 +49,10 @@ func (c cli) newRootCmd() *cobra.Command {
49
fs.String(projectVersionFlag, "", "project version")
50
fs.StringSlice(pluginsFlag, nil, "plugin keys of the plugin to initialize the project with")
51
52
+ // As the root command will be used to shot the help message under some error conditions,
53
+ // like during plugin resolving, we need to allow unknown flags to prevent parsing errors.
54
+ cmd.FParseErrWhitelist = cobra.FParseErrWhitelist{UnknownFlags: true}
55
+
56
return cmd
57
}
58
0 commit comments