mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 22:32:33 +00:00
tests(Bash Completions): fixes the order of several completion commands
This commit is contained in:
parent
78090e5529
commit
90c0698aff
1 changed files with 3 additions and 3 deletions
|
@ -63,7 +63,7 @@ static BASH: &'static str = r#"_myapp() {
|
|||
return 0
|
||||
;;
|
||||
myapp__test)
|
||||
opts=" -h -V --help --version --case "
|
||||
opts=" -h -V --case --help --version "
|
||||
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
|
||||
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
|
||||
return 0
|
||||
|
@ -609,7 +609,7 @@ static BASH_SPECIAL_CMDS: &'static str = r#"_my_app() {
|
|||
return 0
|
||||
;;
|
||||
my_app__some_cmd)
|
||||
opts=" -h -V --help --version --config "
|
||||
opts=" -h -V --config --help --version "
|
||||
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
|
||||
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
|
||||
return 0
|
||||
|
@ -628,7 +628,7 @@ static BASH_SPECIAL_CMDS: &'static str = r#"_my_app() {
|
|||
return 0
|
||||
;;
|
||||
my_app__test)
|
||||
opts=" -h -V --help --version --case "
|
||||
opts=" -h -V --case --help --version "
|
||||
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
|
||||
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
|
||||
return 0
|
||||
|
|
Loading…
Reference in a new issue