use _split_longopt
This commit is contained in:
parent
25a0fcf1b4
commit
f35923a505
@ -3,16 +3,14 @@
|
|||||||
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/=*/}
|
|
||||||
cur=${cur/*=/}
|
|
||||||
case $prev in
|
case $prev in
|
||||||
textfile|cuefile)
|
textfile|cuefile)
|
||||||
_filedir
|
_filedir
|
||||||
@ -33,7 +31,8 @@ _cdrecord()
|
|||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
|
||||||
|
$split && return 0
|
||||||
|
|
||||||
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