Salome HOME
Add completion for configure command
authorSerge Rehbinder <serge.rehbinder@cea.fr>
Wed, 18 May 2016 09:17:08 +0000 (11:17 +0200)
committerSerge Rehbinder <serge.rehbinder@cea.fr>
Wed, 18 May 2016 09:17:08 +0000 (11:17 +0200)
complete_sat.sh

index 11aaed3d0901071902a64e0b62cc89e61a6fd55a..8c5e650d3b70c5a72f2f26069b152a95d02b61ba 100755 (executable)
@@ -80,7 +80,7 @@ _salomeTools_complete()
     # first argument => show available commands
     if [[ ${argc} == 1 ]]
     then
-        opts="config log testcommand source patch prepare environ clean --help"
+        opts="config log testcommand source patch prepare environ clean configure --help"
         COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
         return 0
     fi
@@ -164,6 +164,11 @@ _salomeTools_complete()
             COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
             return 0
             ;;
+        configure)
+            opts="--products --option"
+            COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+            return 0
+            ;;
         *) return 0 ;;
     esac