#!/bin/bash
-# Copyright (C) 2013-2014 CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2013-2015 CEA/DEN, EDF R&D, OPEN CASCADE
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
local cur prev command options
COMPREPLY=( )
_get_comp_words_by_ref -n = cur prev
- commands='start shell connect killall info help coffee'
+ commands='start context shell connect kill killall test info help coffee car'
# Algorithm:
# If cursor is at index 1
if [[ "$cur" == -* ]]; then
case $command in
start)
- options='-t --terminal -g --gui -d --show-desktop= -o --hide-desktop -b --batch -l --logger -f --log-file= -r --resources= -x --xterm -m --modules= -e --embedded= -s --standalone= -p --portkill -k --killall -i --interp= -z --splash= -c --catch-exceptions= --print-port --nosave-config --pinter --ns-port-log= --test= --play= --gdb-session --ddd-session --valgrind-session -w --shutdown-servers= --foreground= --wake-up-session --server-launch-mode= --port= --siman --siman-study= --siman-scenario= --siman-user= --version -h --help'
+ options='-t --terminal -g --gui -d --show-desktop= -o --hide-desktop -b --batch -l --logger -f --log-file= -r --resources= -x --xterm -m --modules= -e --embedded= -s --standalone= -p --portkill -k --killall -i --interp= -z --splash= -c --catch-exceptions= --print-port --nosave-config --pinter --ns-port-log= --test= --play= --gdb-session --ddd-session --valgrind-session -w --shutdown-servers= --foreground= --wake-up-session --server-launch-mode= --port= --version -h --help --with-mpi-module= --config= --extra_env='
;;
shell)
- options='-h --help -p --port= -m --machine='
+ options='-h --help -p --port= -m --machine= -d --directory= -u --user= --with-mpi-module= --config= --extra_env='
+ ;;
+ info)
+ options='-h --help -p --ports -v --version'
+ ;;
+ connect)
+ options='-h --help -c -p'
+ ;;
+ test)
+ options='-h --help --print-labels'
;;
esac
COMPREPLY=( $( compgen -W "$options" -- "$cur" ) )