diff --git a/README.md b/README.md index fcdac5f..4532015 100644 --- a/README.md +++ b/README.md @@ -196,7 +196,7 @@ $ go get gopkg.in/alecthomas/kingpin.v1 - *2014-06-27* -- Stable v1.1.0 release. - Bug fixes. - - Always return an error (rather than panicing) when misconfigured. + - Always return an error (rather than panicking) when misconfigured. - `OpenFile(flag, perm)` value type added, for finer control over opening files. - Significantly improved usage formatting. diff --git a/app.go b/app.go index 343a57e..800766b 100644 --- a/app.go +++ b/app.go @@ -31,7 +31,7 @@ type Application struct { version string errorWriter io.Writer // Destination for errors. usageWriter io.Writer // Destination for usage - hiddenHelpWriter io.Writer // Desitination for hidden help commands. + hiddenHelpWriter io.Writer // Destination for hidden help commands. usageTemplate string usageFuncs map[string]interface{} templateRenderer func(a *Application, context *ParseContext, indent int, tmpl string) error @@ -703,7 +703,7 @@ func (a *Application) completionOptions(context *ParseContext) []string { if strings.HasPrefix(prevArg, "--") && !strings.HasPrefix(currArg, "--") { // Matches: ./myApp --flag value - // Wont Match: ./myApp --flag -- + // Won't Match: ./myApp --flag -- flagName = prevArg[2:] // Strip the "--" flagValue = currArg } else if strings.HasPrefix(currArg, "--") {