Skip to content

Commit

Permalink
Merge pull request #8 from buty4649/short-option
Browse files Browse the repository at this point in the history
Update config flag to use shorthand option"config" flag now has shorthand option "c".
  • Loading branch information
buty4649 authored Mar 20, 2024
2 parents d72d732 + 95f0bf6 commit 6f0bbc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func Execute() {
}

func init() {
rootCmd.PersistentFlags().StringVar(&flags.ConfigPath, "config", "./netnsplan.yaml", "config file")
rootCmd.PersistentFlags().StringVarP(&flags.ConfigPath, "config", "c", "./netnsplan.yaml", "config file")
rootCmd.PersistentFlags().StringVar(&flags.IpCmdPath, "cmd", "/bin/ip", "ip command path")

rootCmd.PersistentFlags().BoolVar(&flags.Debug, "debug", false, "debug mode")
Expand Down

0 comments on commit 6f0bbc2

Please sign in to comment.