use _split_longopt
This commit is contained in:
parent
25a0fcf1b4
commit
f35923a505
@ -3,37 +3,36 @@
|
|||||||
have cdrecord || have wodim &&
|
have cdrecord || have wodim &&
|
||||||
_cdrecord()
|
_cdrecord()
|
||||||
{
|
{
|
||||||
local cur prev i generic_options track_options track_mode
|
local cur prev i generic_options track_options track_mode split=false
|
||||||
|
|
||||||
COMPREPLY=()
|
COMPREPLY=()
|
||||||
cur=`_get_cword`
|
cur=`_get_cword`
|
||||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||||
|
|
||||||
# foo=bar style option
|
_split_longopt && split=true
|
||||||
if [[ "$cur" == *=* ]]; then
|
|
||||||
prev=${cur/=*/}
|
case $prev in
|
||||||
cur=${cur/*=/}
|
textfile|cuefile)
|
||||||
case $prev in
|
_filedir
|
||||||
textfile|cuefile)
|
return 0
|
||||||
_filedir
|
;;
|
||||||
return 0
|
blank)
|
||||||
;;
|
COMPREPLY=( $( compgen -W 'help all fast \
|
||||||
blank)
|
track unreserve trtail unclose session' \
|
||||||
COMPREPLY=( $( compgen -W 'help all fast \
|
-- "$cur" ) )
|
||||||
track unreserve trtail unclose session' \
|
return 0
|
||||||
-- "$cur" ) )
|
;;
|
||||||
return 0
|
driveropts)
|
||||||
;;
|
COMPREPLY=( $( compgen -W 'burnfree noburnfree\
|
||||||
driveropts)
|
varirec= audiomaster forcespeed noforcespeed\
|
||||||
COMPREPLY=( $( compgen -W 'burnfree noburnfree\
|
speedread nospeedread singlesession \
|
||||||
varirec= audiomaster forcespeed noforcespeed\
|
nosinglesession hidecdr nohidecdr tattooinfo\
|
||||||
speedread nospeedread singlesession \
|
tattoofile=' -- "$cur" ) )
|
||||||
nosinglesession hidecdr nohidecdr tattooinfo\
|
return 0
|
||||||
tattoofile=' -- "$cur" ) )
|
;;
|
||||||
return 0
|
esac
|
||||||
;;
|
|
||||||
esac
|
$split && return 0
|
||||||
fi
|
|
||||||
|
|
||||||
generic_options=(-version -v -V -d -silent -force -immed -dummy \
|
generic_options=(-version -v -V -d -silent -force -immed -dummy \
|
||||||
-dao -raw -raw96r -raw96p -raw16 -multi -msinfo -toc \
|
-dao -raw -raw96r -raw96p -raw16 -multi -msinfo -toc \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user