From 59dac837b5ddd466f726c80b2043d310086aaea9 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Tue, 26 May 2015 14:53:43 +0200 Subject: [PATCH] fix usage --- system/lxc-driver.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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}" } -- 2.43.0