Fix:(issue_1206) Default value shouldnt depend on env variable or value set from cmdline

This commit is contained in:
Naveen Gogineni
2022-10-10 12:55:08 -04:00
parent 39b1245772
commit 729a7c41ce
16 changed files with 370 additions and 27 deletions

View File

@@ -2625,19 +2625,6 @@ func TestSetupInitializesOnlyNilWriters(t *testing.T) {
}
}
type stringGeneric struct {
value string
}
func (s *stringGeneric) Set(value string) error {
s.value = value
return nil
}
func (s *stringGeneric) String() string {
return s.value
}
func TestFlagAction(t *testing.T) {
stringFlag := &StringFlag{
Name: "f_string",