Skip to content

Commit

Permalink
OPCT-257: fix typo on flag: log-level (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtulio authored Aug 5, 2024
1 parent 0ee2f79 commit ed7ee37
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var rootCmd = &cobra.Command{
var err error

// Validate logging level
loglevel := viper.GetString("loglevel")
loglevel := viper.GetString("log-level")
logrusLevel, err := log.ParseLevel(loglevel)
if err != nil {
log.Fatal(err)
Expand Down Expand Up @@ -63,9 +63,9 @@ func init() {
cobra.OnInitialize(initConfig)

rootCmd.PersistentFlags().String("kubeconfig", "", "kubeconfig for target OpenShift cluster")
rootCmd.PersistentFlags().String("loglevel", "info", "logging level")
rootCmd.PersistentFlags().String("log-level", "info", "logging level")
initBindFlag("kubeconfig")
initBindFlag("loglevel")
initBindFlag("log-level")

// Link in child commands
rootCmd.AddCommand(destroy.NewCmdDestroy())
Expand Down

0 comments on commit ed7ee37

Please sign in to comment.