[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 0e11c05a491738379358dfbed7ce07e3196aee15

Ville Skyttä ville.skytta at iki.fi
Mon Oct 19 18:39:59 UTC 2009


The following commit has been merged in the master branch:
commit 0e11c05a491738379358dfbed7ce07e3196aee15
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Mon Oct 19 21:39:55 2009 +0300

    Add --help/--version handling.

diff --git a/contrib/gkrellm b/contrib/gkrellm
index 1d7f645..59acde7 100644
--- a/contrib/gkrellm
+++ b/contrib/gkrellm
@@ -30,6 +30,10 @@ _gkrellm()
             # Argument required but no completions available
             return 0
             ;;
+        -h|--help|-v|--version)
+            # All other options are noop with these
+            return 0
+            ;;
     esac
 
     if [[ "$cur" == -* ]]; then

-- 
bash-completion



More information about the Bash-completion-commits mailing list