File tree 2 files changed +1
-14
lines changed
2 files changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -132,6 +132,7 @@ fn subcommand_details(cmd: &Command) -> String {
132
132
. collect :: < Vec < _ > > ( ) ;
133
133
134
134
scs. sort ( ) ;
135
+ scs. dedup ( ) ;
135
136
136
137
subcmd_dets. extend ( scs. iter ( ) . map ( |sc| {
137
138
format ! (
Original file line number Diff line number Diff line change @@ -152,20 +152,6 @@ _my-app() {
152
152
COMPREPLY=( $( compgen -W " ${opts} " -- " ${cur} " ) )
153
153
return 0
154
154
;;
155
- my__app__some_cmd)
156
- opts=" -h -V --help --version sub_cmd help"
157
- if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
158
- COMPREPLY=( $( compgen -W " ${opts} " -- " ${cur} " ) )
159
- return 0
160
- fi
161
- case " ${prev} " in
162
- * )
163
- COMPREPLY=()
164
- ;;
165
- esac
166
- COMPREPLY=( $( compgen -W " ${opts} " -- " ${cur} " ) )
167
- return 0
168
- ;;
169
155
my__app__some_cmd__help)
170
156
opts=" sub_cmd help"
171
157
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
You can’t perform that action at this time.
0 commit comments