change "complete" to "shellComplete"

This commit is contained in:
Joshua Rubin
2016-11-14 09:35:22 -07:00
parent ea3df26e64
commit 8dd1962f7b
3 changed files with 7 additions and 7 deletions

4
app.go
View File

@@ -175,7 +175,7 @@ func (a *App) Run(arguments []string) (err error) {
// flag name as the value of the flag before it which is undesirable
// note that we can only do this because the shell autocomplete function
// always appends the completion flag at the end of the command
complete, arguments := checkCompleteFlag(a, arguments)
shellComplete, arguments := checkShellCompleteFlag(a, arguments)
// parse flags
set := flagSet(a.Name, a.Flags)
@@ -188,7 +188,7 @@ func (a *App) Run(arguments []string) (err error) {
ShowAppHelp(context)
return nerr
}
context.complete = complete
context.shellComplete = shellComplete
if checkCompletions(context) {
return nil