xz* option completion updates.
This commit is contained in:
parent
03fee4b4d3
commit
70a3b8a8b4
2
CHANGES
2
CHANGES
@ -2,7 +2,7 @@ bash-completion (2.x)
|
|||||||
|
|
||||||
[ Ville Skyttä ]
|
[ Ville Skyttä ]
|
||||||
* Add pxz and reptyr completions.
|
* Add pxz and reptyr completions.
|
||||||
* Improve aspell, gendiff, smartctl, and tar completions.
|
* Improve aspell, gendiff, smartctl, tar, xz, and xzdec completions.
|
||||||
* Try harder to find the correct perl executable to run the perl helper with.
|
* Try harder to find the correct perl executable to run the perl helper with.
|
||||||
* Drop rpm query support for rpm < 4.1.
|
* Drop rpm query support for rpm < 4.1.
|
||||||
* Split rpm and rpmbuild completions and improve them both.
|
* Split rpm and rpmbuild completions and improve them both.
|
||||||
|
@ -9,11 +9,11 @@ _xz()
|
|||||||
|
|
||||||
if [[ "$cur" == -* ]]; then
|
if [[ "$cur" == -* ]]; then
|
||||||
COMPREPLY=( $( compgen -W '--compress --decompress --test --list \
|
COMPREPLY=( $( compgen -W '--compress --decompress --test --list \
|
||||||
--keep --force --stdout --suffix --files --files0 --format --check \
|
--keep --force --stdout --no-sparse --suffix --files --files0 \
|
||||||
-0 -1 -2 -3 -4 -5 -6 -7 -8 -9 --fast --best --extreme --memory \
|
--format --check -0 -1 -2 -3 -4 -5 -6 -7 -8 -9 --extreme --memory \
|
||||||
--lzma1 --lzma2 --x86 --powerpc --ia64 --arm --armthumb --sparc \
|
--lzma1 --lzma2 --x86 --powerpc --ia64 --arm --armthumb --sparc \
|
||||||
--delta --quiet --verbose --no-warn --help --long-help --version' \
|
--delta --quiet --verbose --no-warn --robot --info-memory --help \
|
||||||
-- "$cur" ) )
|
--long-help --version' -- "$cur" ) )
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -31,7 +31,7 @@ _xz()
|
|||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
-C|--check)
|
-C|--check)
|
||||||
COMPREPLY=( $( compgen -W 'crc32 crc64 sha256' -- "$cur" ) )
|
COMPREPLY=( $( compgen -W 'crc32 crc64 sha256 none' -- "$cur" ) )
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
-F|--format)
|
-F|--format)
|
||||||
@ -42,7 +42,7 @@ _xz()
|
|||||||
# argument required but no completions available
|
# argument required but no completions available
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
-h|--help|-H|--long-help|-V|--version)
|
-h|--help|-H|--long-help|-V|--version|--info-memory)
|
||||||
# all other arguments are noop with these
|
# all other arguments are noop with these
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
@ -69,7 +69,8 @@ _xzdec()
|
|||||||
_get_comp_words_by_ref cur prev
|
_get_comp_words_by_ref cur prev
|
||||||
|
|
||||||
if [[ "$cur" == -* ]]; then
|
if [[ "$cur" == -* ]]; then
|
||||||
COMPREPLY=( $( compgen -W '--memory --help --version' -- "$cur" ) )
|
COMPREPLY=( $( compgen -W '--memory --quiet --help --version' \
|
||||||
|
-- "$cur" ) )
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user