diff options
| author | Johannes Schickling <[email protected]> | 2014-03-16 18:40:07 +0100 |
|---|---|---|
| committer | Johannes Schickling <[email protected]> | 2014-03-16 18:40:07 +0100 |
| commit | 9c2f53a5756ad7b2be945e671191d42039604ace (patch) | |
| tree | b399476576392985b303c51fbf6d074874deffbd /flag.go | |
| parent | fc2d9a0ef658fa4e4c319939fd6f4b6becfccb48 (diff) | |
Make reuse message more clear
Diffstat (limited to 'flag.go')
| -rw-r--r-- | flag.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |
