File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,8 @@ func rootCommand() *cobra.Command {
59
59
},
60
60
}
61
61
62
+ rootCmd .CompletionOptions .DisableDefaultCmd = true
63
+
62
64
setRootFlags (rootCmd )
63
65
return rootCmd
64
66
}
Original file line number Diff line number Diff line change @@ -117,6 +117,8 @@ func newPbmApp() *pbmApp {
117
117
SilenceUsage : true ,
118
118
}
119
119
120
+ app .rootCmd .CompletionOptions .DisableDefaultCmd = true
121
+
120
122
app .rootCmd .PersistentFlags ().String (
121
123
mongoConnFlag ,
122
124
"" ,
@@ -385,6 +387,10 @@ func (app *pbmApp) buildConfigCmd() *cobra.Command {
385
387
386
388
func (app * pbmApp ) buildConfigProfileCmd () * cobra.Command {
387
389
runListConfigProfileCmd := app .wrapRunE (func (cmd * cobra.Command , args []string ) (fmt.Stringer , error ) {
390
+ if len (args ) != 0 {
391
+ return nil , errors .New (fmt .Sprintf ("parse command line parameters: unexpected %s" , args [0 ]))
392
+ }
393
+
388
394
return handleListConfigProfiles (app .ctx , app .pbm )
389
395
})
390
396
You can’t perform that action at this time.
0 commit comments