diff --git a/appveyor.yml b/appveyor.yml index 66e740a..8ef2fea 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -6,16 +6,21 @@ image: Visual Studio 2017 clone_folder: c:\gopath\src\github.com\urfave\cli +cache: + - node_modules + environment: GOPATH: C:\gopath GOVERSION: 1.11.x + GO111MODULE: on + GOPROXY: https://proxy.golang.org install: - set PATH=%GOPATH%\bin;C:\go\bin;%PATH% - go version - go env - - go get github.com/urfave/gfmrun/... - - go get -v -t ./... + - go get github.com/urfave/gfmrun/cmd/gfmrun + - go mod vendor build_script: - go run build.go vet diff --git a/autocomplete/zsh_autocomplete b/autocomplete/zsh_autocomplete index 8b747ae..e4fddbe 100644 --- a/autocomplete/zsh_autocomplete +++ b/autocomplete/zsh_autocomplete @@ -1,3 +1,5 @@ +#compdef $PROG + _cli_zsh_autocomplete() { local -a opts diff --git a/flag.go b/flag.go index 3c05270..1cfa1cd 100644 --- a/flag.go +++ b/flag.go @@ -86,7 +86,7 @@ type RequiredFlag interface { type DocGenerationFlag interface { Flag - // TakesValue returns true of the flag takes a value, otherwise false + // TakesValue returns true if the flag takes a value, otherwise false TakesValue() bool // GetUsage returns the usage string for the flag