Skip to content

Commit

Permalink
chore(cli): improve walk function documentation (influxdata#16176)
Browse files Browse the repository at this point in the history
  • Loading branch information
imogenkinsman authored Dec 19, 2019
1 parent 4755e50 commit cc0943c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/influx/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func influxCmd() *cobra.Command {

cmd.PersistentFlags().BoolVar(&flags.skipVerify, "skip-verify", false, "SkipVerify controls whether a client verifies the server's certificate chain and host name.")

// Override help on all the commands tree
// Update help description for all commands in command tree
walk(cmd, func(c *cobra.Command) {
c.Flags().BoolP("help", "h", false, fmt.Sprintf("Help for the %s command ", c.Name()))
})
Expand Down

0 comments on commit cc0943c

Please sign in to comment.