From 44a387f21665bcc4ede3ebb5a051337c2b47af85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Wed, 11 May 2011 23:57:12 +0300 Subject: [PATCH] cksfv: Use _parse_help, add -g argument completion. --- completions/cksfv | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/completions/cksfv b/completions/cksfv index 921afb03..f5fcab38 100644 --- a/completions/cksfv +++ b/completions/cksfv @@ -8,12 +8,12 @@ _cksfv() _init_completion || return if [ $cword -eq 1 ]; then - COMPREPLY=( $( compgen -W '-C -f -i -q -v' -- "$cur" ) ) + COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) ) return 0 fi case "$prev" in - -C) + -C|-g) _filedir -d return 0 ;;