chore(cli): improve walk function documentation (#16176)

pull/16297/head
Jade McGough 2019-12-19 03:22:56 -08:00 committed by GitHub
parent 4755e50af8
commit cc0943ceeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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()))
})