From: Thierry Parmentelat Date: Tue, 26 May 2015 12:53:43 +0000 (+0200) Subject: fix usage X-Git-Tag: tests-6.0-2~19 X-Git-Url: http://git.onelab.eu/?p=tests.git;a=commitdiff_plain;h=59dac837b5ddd466f726c80b2043d310086aaea9 fix usage --- diff --git a/system/lxc-driver.sh b/system/lxc-driver.sh index 86b8cb1..cec69fb 100755 --- a/system/lxc-driver.sh +++ b/system/lxc-driver.sh @@ -98,13 +98,15 @@ function destroy_lxc () { } #################### +commands="sense_all|start_all|stop_all|restart_all|destroy_all|sense_lxc|start_lxc|stop_lxc|restart_lxc|destroy_lxc" + function usage () { echo "Usage: lxc-driver.sh [options]" echo "Description:" echo " This command is used to manage and retreive information on existing lxc containers " echo "lxc-driver.sh -c _all" echo "lxc-driver.sh -c _lxc -n " - echo " in {sense,start,stop,restart,destroy}" + echo " in {$commands}" }