CONFIRM=
function usage () {
message="$@"
- echo "usage : $COMMAND [-c] [-f distro] [-i image] [ -m memory ] [ -n hostname ] container"
+ echo "usage : $COMMAND [-c] [-f distro] [-i image] [ -m memory ] [ -n hostname ] [-s] container"
echo " -c : confirm, will show the command and prompt for confirmation "
echo " -f : set distro, default is $DEFAULT_DISTRO"
echo " -i : if specified, image is rsynced into /vservers"
}
# using HOSTNAME won't work as this is already set in environment
-while getopts "cf:i:m:n:h" flag; do
+while getopts "cf:i:m:n:sh" flag; do
case $flag in
c) CONFIRM=true ;;
f) DISTRO=$OPTARG ;;