aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Ogier <[email protected]>2012-05-07 03:59:13 -0400
committerAlex Ogier <[email protected]>2012-05-07 03:59:13 -0400
commit2f687e3b510e3bdc566bfc5fb5a35624bf0ed24d (patch)
tree730bffb4540881aa35fc9b739b1eb8ea87b3469a
parent390e2193a66bb7a5f4ec6219e0733b5a4b56878a (diff)
Formatted with go fmt
-rw-r--r--flag.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/flag.go b/flag.go
index d6fb32b..6a5dcbf 100644
--- a/flag.go
+++ b/flag.go
@@ -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] == '=' {