diff options
| author | spf13 <[email protected]> | 2014-06-27 09:58:16 -0400 |
|---|---|---|
| committer | spf13 <[email protected]> | 2014-06-27 09:58:16 -0400 |
| commit | 2790b68253e8df395da60096bcea40e90daa3b41 (patch) | |
| tree | ac8b8a984fdff373eb19f9f101580118c4e0a401 /flag.go | |
| parent | b9035d0aef89271f98c3a2435e9cc614ffe5e81e (diff) | |
Fixing issues so test pass again
Diffstat (limited to 'flag.go')
| -rw-r--r-- | flag.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -379,7 +379,7 @@ func (f *FlagSet) AddFlag(flag *Flag) { c := flag.Shorthand[0] old, alreadythere := f.shorthands[c] if alreadythere { - fmt.Fprintf(f.out(), "%s shorthand reused: %q for %s already used for %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, flag.Name, old.Name) panic("shorthand redefinition") } f.shorthands[c] = flag |
