diff --git a/cmd/crawl.go b/cmd/crawl.go index 3a3c4e5..12203eb 100644 --- a/cmd/crawl.go +++ b/cmd/crawl.go @@ -68,6 +68,7 @@ func init() { CrawlCmd.Flags().StringP("username", "u", "", "Set the username for the BMC") CrawlCmd.Flags().StringP("password", "p", "", "Set the password for the BMC") CrawlCmd.Flags().BoolP("insecure", "i", false, "Ignore SSL errors") + CrawlCmd.Flags().StringVarP(&secretsFile, "file", "f", "nodes.json", "set the secrets file with BMC credentials") checkBindFlagError(viper.BindPFlag("crawl.username", CrawlCmd.Flags().Lookup("username"))) checkBindFlagError(viper.BindPFlag("crawl.password", CrawlCmd.Flags().Lookup("password"))) diff --git a/cmd/secrets.go b/cmd/secrets.go index b75e4e7..b4aaa43 100644 --- a/cmd/secrets.go +++ b/cmd/secrets.go @@ -215,7 +215,7 @@ var secretsRemoveCmd = &cobra.Command{ } func init() { - secretsCmd.Flags().StringVarP(&secretsFile, "file", "f", "nodes.json", "") + secretsCmd.Flags().StringVarP(&secretsFile, "file", "f", "nodes.json", "set the secrets file with BMC credentials") secretsStoreCmd.Flags().StringVar(&secretsStoreFormat, "format", "json", "set the input format for the secrets file (json|base64)") secretsStoreCmd.Flags().StringVarP(&secretsStoreInputFile, "input-file", "i", "", "set the file to read as input")