From 64d3555482218336121cd318c27454041cc479a1 Mon Sep 17 00:00:00 2001 From: Lynn Cyrin Date: Tue, 1 Oct 2019 20:21:12 -0700 Subject: [PATCH] trim whitespace --- command.go | 1 + 1 file changed, 1 insertion(+) diff --git a/command.go b/command.go index d41a1bf..e7cb97a 100644 --- a/command.go +++ b/command.go @@ -278,6 +278,7 @@ func argIsFlag(commandFlags []Flag, arg string) bool { // look through all the flags, to see if the `arg` is one of our flags for _, flag := range commandFlags { for _, key := range strings.Split(flag.GetName(), ",") { + key := strings.TrimSpace(key) if key == arg { return true }