Browse Source

bash-completion: Add cmake --help-manual

Eric NOULARD 9 years ago
parent
commit
f67afbdc4a
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Auxiliary/bash-completion/cmake

+ 5 - 0
Auxiliary/bash-completion/cmake

@@ -121,6 +121,11 @@ _cmake()
                 grep -v "^cmake version " )' -- "$cur" ) )
             return
             ;;
+        --help-manual)
+            COMPREPLY=( $( compgen -W '$( cmake --help-manual-list 2>/dev/null|
+                grep -v "^cmake version " | sed -e "s/([0-9])$//" )' -- "$cur" ) )
+            return
+            ;;
         --help-module)
             COMPREPLY=( $( compgen -W '$( cmake --help-module-list 2>/dev/null|
                 grep -v "^cmake version " )' -- "$cur" ) )