diff options
| author | Alex Ogier <[email protected]> | 2012-05-07 03:59:13 -0400 |
|---|---|---|
| committer | Alex Ogier <[email protected]> | 2012-05-07 03:59:13 -0400 |
| commit | 2f687e3b510e3bdc566bfc5fb5a35624bf0ed24d (patch) | |
| tree | 730bffb4540881aa35fc9b739b1eb8ea87b3469a | |
| parent | 390e2193a66bb7a5f4ec6219e0733b5a4b56878a (diff) | |
Formatted with go fmt
| -rw-r--r-- | flag.go | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -871,7 +871,6 @@ func (f *FlagSet) VarP(value Value, name, shorthand, usage string) { f.shorthands[c] = flag } - // Var defines a flag with the specified name and usage string. The type and // value of the flag are represented by the first argument, of type Value, which // typically holds a user-defined implementation of Value. For instance, the @@ -956,7 +955,7 @@ func (f *FlagSet) parseArgs(args []string) error { return f.failf("unknown shorthand flag: %q in -%s", c, shorthands) } flag = f.shorthands[c] - if i == len(shorthands) - 1 { + if i == len(shorthands)-1 { break } if shorthands[i+1] == '=' { |
