Merge branch 'report_source_of_parse_errors' of ssh://github.com/mostynb/cli into mostynb-report_source_of_parse_errors

This commit is contained in:
2022-04-19 19:41:57 -04:00
17 changed files with 53 additions and 50 deletions

View File

@@ -62,7 +62,7 @@ func (f *StringFlag) IsVisible() bool {
// Apply populates the flag given the flag set and environment
func (f *StringFlag) Apply(set *flag.FlagSet) error {
if val, ok := flagFromEnvOrFile(f.EnvVars, f.FilePath); ok {
if val, _, found := flagFromEnvOrFile(f.EnvVars, f.FilePath); found {
f.Value = val
f.HasBeenSet = true
}