Do not add environment variable to help it is already present.

Fixes #246.
This commit is contained in:
Mitar
2021-12-03 00:19:54 +01:00
committed by Alec Thomas
parent 32b2f740c9
commit deebf0b09b
7 changed files with 30 additions and 5 deletions
+1
View File
@@ -223,6 +223,7 @@ func (k *Kong) extraFlags() []*Flag {
Value: &Value{
Name: "help",
Help: "Show context-sensitive help.",
OrigHelp: "Show context-sensitive help.",
Target: value,
Tag: &Tag{},
Mapper: k.registry.ForValue(value),