From d83a1d7ccd00a9e1b5d234653837b498b9b27abd Mon Sep 17 00:00:00 2001 From: Albert Nigmatzianov Date: Sun, 7 May 2017 10:52:40 +0200 Subject: [PATCH] Add comment for InitDefaultHelpFlag --- command.go | 1 + 1 file changed, 1 insertion(+) diff --git a/command.go b/command.go index ebc9ab2a..3f6a5ca4 100644 --- a/command.go +++ b/command.go @@ -725,6 +725,7 @@ func (c *Command) ExecuteC() (cmd *Command, err error) { // InitDefaultHelpFlag adds default help flag to c. // It is called automatically by executing the c or by calling help and usage. +// If c already has help flag, it will do nothing. func (c *Command) InitDefaultHelpFlag() { c.mergePersistentFlags() if c.Flags().Lookup("help") == nil {