From 9c2f53a5756ad7b2be945e671191d42039604ace Mon Sep 17 00:00:00 2001 From: Johannes Schickling Date: Sun, 16 Mar 2014 18:40:07 +0100 Subject: Make reuse message more clear --- flag.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flag.go b/flag.go index 743e011..e828e48 100644 --- a/flag.go +++ b/flag.go @@ -868,7 +868,7 @@ func (f *FlagSet) VarP(value Value, name, shorthand, usage string) { c := shorthand[0] old, alreadythere := f.shorthands[c] if alreadythere { - fmt.Fprintf(f.out(), "%s shorthand reused: %q for %s and %s\n", f.name, c, name, old.Name) + fmt.Fprintf(f.out(), "%s shorthand reused: %q for %s already used for %s\n", f.name, c, name, old.Name) panic("shorthand redefinition") } f.shorthands[c] = flag -- cgit v1.2.3