From 1ef15d66a25fd902275c3310133023285c2d2bb1 Mon Sep 17 00:00:00 2001 From: lauralani Date: Fri, 7 Jul 2023 09:32:35 +0200 Subject: [PATCH] disable bash completion option --- cmd/root.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/root.go b/cmd/root.go index f49c251..c88f944 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -42,6 +42,7 @@ func init() { rootCmd.PersistentFlags().StringVarP(&cfgFile, "config", "c", "", "config file (default is $workingdir/config.yaml)") rootCmd.PersistentFlags().BoolVarP(&log.FlagDebug, "debug", "d", false, "enable debug logging") + rootCmd.CompletionOptions.DisableDefaultCmd = true rootCmd.Version = constants.AppVersion // Cobra also supports local flags, which will only run