added '--debug' option
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Tue, 3 Feb 2004 21:52:00 +0000 (21:52 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Tue, 3 Feb 2004 21:52:00 +0000 (21:52 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@767 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/scripts/vserver

index b23785c..f0b96f6 100755 (executable)
@@ -102,7 +102,7 @@ the GNU General Public License.  This program has absolutely no warranty."
 
 set +e
 
-tmp=$(getopt -o +sv --long help,version,sync,verbose -n "$0" -- "$@") || exit 1
+tmp=$(getopt -o +sv --long help,debug,version,sync,verbose -n "$0" -- "$@") || exit 1
 eval set -- "$tmp"
 
 OPTION_FORCE_SYNC=
@@ -112,6 +112,7 @@ while true; do
     case "$1" in
        --help)         showHelp $0 ;;
        --version)      showVersion ;;
+       --debug)        set -x;              shift;;
        -v|--verbose)   OPTION_VERBOSE=1;    shift;;
        -s|--sync)      OPTION_FORCE_SYNC=1; shift;;
        --)             shift; break;;