javadoc: Implement -linkoffline two argument completion.
This commit is contained in:
parent
5681ec1ac9
commit
f8fe3106e1
@ -250,7 +250,6 @@ _javadoc()
|
||||
return 0
|
||||
;;
|
||||
-d|-link|-linkoffline)
|
||||
# TODO: -linkoffline takes two arguments
|
||||
_filedir -d
|
||||
return 0
|
||||
;;
|
||||
@ -260,6 +259,12 @@ _javadoc()
|
||||
;;
|
||||
esac
|
||||
|
||||
# -linkoffline takes two arguments
|
||||
if [[ $cword -gt 2 && ${words[$cword-2]} == -linkoffline ]]; then
|
||||
_filedir -d
|
||||
return
|
||||
fi
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '$( _parse_help "$1" -help )' -- "$cur" ) )
|
||||
else
|
||||
|
@ -12,8 +12,14 @@ setup
|
||||
|
||||
|
||||
assert_complete_any "javadoc "
|
||||
sync_after_int
|
||||
|
||||
|
||||
assert_complete {"bar bar.d/" foo.d/} "javadoc -linkoffline $::srcdir/fixtures/shared/default/"
|
||||
sync_after_int
|
||||
|
||||
|
||||
assert_complete {"bar bar.d/" foo.d/} "javadoc -nodeprecated -linkoffline foo $::srcdir/fixtures/shared/default/"
|
||||
sync_after_int
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user