autotools, xsltproc: Use _parse_help instead of _longopt.
This commit is contained in:
parent
10cfd72956
commit
a785f1c2f9
@ -32,7 +32,7 @@ _autoconf()
|
||||
$split && return 0
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
_longopt $1
|
||||
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
|
||||
return
|
||||
fi
|
||||
|
||||
@ -69,7 +69,7 @@ _autoreconf()
|
||||
$split && return 0
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
_longopt $1
|
||||
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
|
||||
return 0
|
||||
fi
|
||||
|
||||
@ -103,7 +103,7 @@ _autoscan()
|
||||
$split && return 0
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
_longopt $1
|
||||
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
|
||||
return 0
|
||||
fi
|
||||
|
||||
|
@ -28,7 +28,7 @@ _automake()
|
||||
$split && return 0
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
_longopt $1
|
||||
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
|
||||
return
|
||||
fi
|
||||
|
||||
@ -67,7 +67,7 @@ _aclocal()
|
||||
|
||||
$split && return 0
|
||||
|
||||
_longopt $1
|
||||
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
|
||||
} &&
|
||||
complete -F _aclocal aclocal aclocal-1.11
|
||||
|
||||
|
@ -40,7 +40,8 @@ _xsltproc()
|
||||
return 0
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
_longopt xsltproc
|
||||
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
|
||||
COMPREPLY=( "${COMPREPLY[@]%:}" )
|
||||
else
|
||||
_filedir '@(xsl|xslt|xml)'
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user