Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
le0pard committed Jul 15, 2024
1 parent 7572e59 commit 16fa092
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,16 +156,10 @@ func initConfig() {

func init() {
cobra.OnInitialize(initConfig)
// Here you will define your flags and configuration settings.
// Cobra supports persistent flags, which, if defined here,
// will be global for your application.

// rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.postal_server.yaml)")
rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.postal_server.yaml)")

// Cobra also supports local flags, which will only run
// when this action is called directly.
rootCmd.SetVersionTemplate("Certonid version {{.Version}}\n")
rootCmd.SetVersionTemplate("PostalServer version {{.Version}}\n")

rootCmd.PersistentFlags().Bool("debug", false, "use debug logging")
viper.BindPFlag("debug", rootCmd.PersistentFlags().Lookup("debug"))
Expand Down

0 comments on commit 16fa092

Please sign in to comment.