Skip to content

Commit d28b432

Browse files
Add all command line options.
1 parent 362fcd2 commit d28b432

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autocomplete/complete.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ _tldr_complete() {
1414
local word="${COMP_WORDS[COMP_CWORD]}"
1515
local cmpl=""
1616
if [[ "$word" == "--"* ]] || [ -z "$word" ]; then
17-
cmpl=$'--version\n--help\n--update\n--clear-cache\n--platform\n--render'
17+
cmpl=$'--help\n--color\n--platform\n--render\n--update\n--version\n--clear-cache\n--verbose\n--list'
1818
elif [[ "$word" == "-"* ]]; then
19-
cmpl=$'\n-v\n-h\n-u\n-c\n-p\n-r'
19+
cmpl=$'-h\n-C\n-p\n-r\n-u\n-v\n-c\n-V\n-l'
2020
elif [[ "$word" == *"/"* ]]; then # the file command will give an error if passed directly since this will be a directory name - an invalid command
2121
cmpl=""
2222
else

0 commit comments

Comments
 (0)