Skip to content

Commit

Permalink
Revised per pull request comment nextcloud#35451 (comment) as the 'co…
Browse files Browse the repository at this point in the history
…mplete' built-in handles de-duplication and sortation.

Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
  • Loading branch information
RonaldBarnes committed Dec 1, 2022
1 parent a9f8971 commit a86af42
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions complete.occ
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,9 @@ function get_opts_list()
)
## Verbose settings hard to parse: i.e. "-v|vv|vvv, --verbose"
## Just manually add -vv and -vvv, and place in order (after -v):
local len
((len=${#opts_list[@]}-1))
## Note: `complete` built-in handles de-duplication and sortation
opts_list[len]="-vv"
opts_list+=("-vvv")
opts_list+=("--verbose")
}


Expand Down

0 comments on commit a86af42

Please sign in to comment.