summaryrefslogtreecommitdiffstats
path: root/debian/local/clzip
diff options
context:
space:
mode:
Diffstat (limited to 'debian/local/clzip')
-rw-r--r--debian/local/clzip43
1 files changed, 43 insertions, 0 deletions
diff --git a/debian/local/clzip b/debian/local/clzip
new file mode 100644
index 0000000..b4f9614
--- /dev/null
+++ b/debian/local/clzip
@@ -0,0 +1,43 @@
+_clzip ()
+{
+ local cur prev
+
+ cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+
+ local opts_short opts_long
+
+ # clzip 1.11
+ opts_short="-h -V -a -b -c -d -f -F -k -l -m -o -q -s -S -t -v -0 -1 -2 -3 -4 -5 -6 -7 -8 -9"
+ opts_long="--help --version --trailing-error --member-size --stdout --decompress --force --recompress --keep --list --match-length --output --quiet --dictionary-size --volume-size --test --verbose --fast --best --loose-trailing"
+
+ case "${prev}" in
+ -o|--output)
+ # FIXME: file
+ ;;
+
+ -b|--member-size|-m|--match-length|-s|--dictionary-size|-S|--volume-size)
+ # FIXME: byte
+ ;;
+ esac
+
+ case "${cur}" in
+ --*)
+ COMPREPLY=( $( compgen -W "${opts_long}" -- ${cur} ) )
+ return 0
+ ;;
+
+ -*)
+ COMPREPLY=( $( compgen -W "${opts_short}" -- ${cur} ) )
+ return 0
+ ;;
+
+ *)
+ COMPREPLY=()
+ ;;
+ esac
+
+ return 0
+}
+
+complete -F _clzip clzip