From f6777bf4bf44867abbcaa63a97a67db60469ea80 Mon Sep 17 00:00:00 2001 From: Lynn Cyrin Date: Sat, 13 Jul 2019 01:03:46 -0700 Subject: [PATCH] quote the flag name --- context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/context.go b/context.go index 8746d68..bd6ac6c 100644 --- a/context.go +++ b/context.go @@ -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()) } } }