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
@@ -231,6 +231,7 @@ type Value struct {
Flag *Flag // Nil if positional argument.
Name string
Help string
OrigHelp string // Original help string, without interpolated variables.
Default string
DefaultValue reflect.Value
Enum string