aboutsummaryrefslogtreecommitdiff
path: root/flag.go
diff options
context:
space:
mode:
authorAlex Ogier <[email protected]>2014-03-17 01:06:30 -0400
committerAlex Ogier <[email protected]>2014-03-17 01:06:30 -0400
commitf791c74aa7e8c09699e2977b56fda532810c86b3 (patch)
treeb399476576392985b303c51fbf6d074874deffbd /flag.go
parentfc2d9a0ef658fa4e4c319939fd6f4b6becfccb48 (diff)
parent9c2f53a5756ad7b2be945e671191d42039604ace (diff)
Merge pull request #5 from schickling/patch-1
Make reuse message more clear
Diffstat (limited to 'flag.go')
-rw-r--r--flag.go2
1 files changed, 1 insertions, 1 deletions
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