Skip to content

Commit

Permalink
Add all command line options.
Browse files Browse the repository at this point in the history
  • Loading branch information
lakshayrohila authored Feb 15, 2024
1 parent 362fcd2 commit d28b432
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autocomplete/complete.bash
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ _tldr_complete() {
local word="${COMP_WORDS[COMP_CWORD]}"
local cmpl=""
if [[ "$word" == "--"* ]] || [ -z "$word" ]; then
cmpl=$'--version\n--help\n--update\n--clear-cache\n--platform\n--render'
cmpl=$'--help\n--color\n--platform\n--render\n--update\n--version\n--clear-cache\n--verbose\n--list'
elif [[ "$word" == "-"* ]]; then
cmpl=$'\n-v\n-h\n-u\n-c\n-p\n-r'
cmpl=$'-h\n-C\n-p\n-r\n-u\n-v\n-c\n-V\n-l'
elif [[ "$word" == *"/"* ]]; then # the file command will give an error if passed directly since this will be a directory name - an invalid command
cmpl=""
else
Expand Down

0 comments on commit d28b432

Please sign in to comment.