quote the flag name
This commit is contained in:
parent
6a2ae78373
commit
f6777bf4bf
@ -305,7 +305,7 @@ func checkRequiredFlags(flags []Flag, set *flag.FlagSet) error {
|
||||
if rf.IsRequired() {
|
||||
key := strings.Split(f.GetName(), ",")[0]
|
||||
if !visited[key] {
|
||||
return fmt.Errorf("Required flag %s not set", f.GetName())
|
||||
return fmt.Errorf("Required flag %q not set", f.GetName())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user