Add help option completions for godoc, gofmt, goimports, golint, gorename

This commit is contained in:
Clément Martinez 2016-06-08 17:21:16 +02:00
parent 09f9d71bb2
commit 65ed22d5a6
5 changed files with 5 additions and 5 deletions

View File

@ -22,4 +22,4 @@ complete -r -c godoc -l url -o url -d "Print HTML for named URL"
complete -c godoc -s v -d "Verbose mode"
complete -r -c godoc -l write_index -o write_index -d "Write index to a file"
complete -r -c godoc -l zip -o zip -d "Zip file providing the file system to serve"
complete -c godoc -l help -o help -s h -d "Show help"

View File

@ -5,4 +5,4 @@ complete -c gofmt -s l -d "List files whose formatting differs from gofmt's"
complete -c gofmt -s r -d "Rewrite rule (e.g., 'a[b:len(a)] -> a[b:]')"
complete -c gofmt -s s -d "Simplify code"
complete -c gofmt -s w -d "Write result to (source) file instead of stdout"
complete -c gofmt -l help -o help -s h -d "Show help"

View File

@ -3,4 +3,4 @@ complete -c goimports -s e -d "Report all errors"
complete -c goimports -s l -d "List files whose formatting differs from goimport's"
complete -c goimports -l srcdir -o srcdir -r -d "Choose imports as if source code is from dir"
complete -c goimports -s w -d "Write result to (source) file instead of stdout"
complete -c goimports -l help -o help -s h -d "Show help"

View File

@ -1,3 +1,3 @@
complete -c golint -l min_confidence -o min_confidence -d "Minimum confidence of a problem to print it" -x
complete -c golint -l set_exit_status -o set_exit_status -d "Set exit status to 1 if any issues are found"
complete -c golint -l help -o help -s h -d "Show help"

View File

@ -7,4 +7,4 @@ complete -c gorename -l offset -o offset -d "File and byte offset of identifier
complete -c gorename -l tags -o tags -d "Build tag"
complete -c gorename -l to -o to -d "New name for identifier" -r
complete -c gorename -s v -d "Print verbose information"
complete -c gorename -l help -o help -s h -d "Show help"