Skip to content

Commit

Permalink
Merge pull request #163 from nokia/fix161
Browse files Browse the repository at this point in the history
fix wrong flag usage
  • Loading branch information
karimra authored Jun 27, 2023
2 parents b01ea5e + c68cc44 commit fabb9a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ func (a *App) Context() context.Context {
func (a *App) InitGlobalFlags() {
a.RootCmd.ResetFlags()

a.RootCmd.PersistentFlags().StringVar(&a.Config.CfgFile, "config", "", "config file (default is $HOME/gnmic.yaml)")
a.RootCmd.PersistentFlags().StringVar(&a.Config.CfgFile, "config", "", "main config file")
a.RootCmd.PersistentFlags().StringSliceVarP(&a.Config.GlobalFlags.Address, "address", "a", []string{}, "comma separated gnmi targets addresses")
a.RootCmd.PersistentFlags().StringVarP(&a.Config.GlobalFlags.Username, "username", "u", "", "username")
a.RootCmd.PersistentFlags().StringVarP(&a.Config.GlobalFlags.Password, "password", "p", "", "password")
Expand Down

0 comments on commit fabb9a2

Please sign in to comment.