X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=scripts%2Fvs;fp=scripts%2Fvs;h=69709adc7b93308d1044f08223b44dd1af16ec08;hb=79e9f0254bb9c717537a553ace30d2cf9f9cdf62;hp=d1c9fe4dca1ec492a9a4940368bab2e5dcf8915a;hpb=febcb78a8e318b8aa5ba74f7450b2d4ec0ac4d96;p=hvutilities.git diff --git a/scripts/vs b/scripts/vs index d1c9fe4..69709ad 100755 --- a/scripts/vs +++ b/scripts/vs @@ -10,23 +10,10 @@ print_usage() echo " -h display this help and exit" } -while getopts "h" flag ;do - case ${flag} in - h) - print_usage - exit 0 - ;; - ?) - echo "${PROG_NAME}: Invalid option: ${OPTARG}." - echo "Try \`${PROG_NAME} --help' for more information." - exit 1 - ;; - esac -done -shift `expr "${OPTIND}" - 1` - -# `$#' now represents the number of arguments after the options. -# `$1' is the first argument, etc. +if [ "x${1}" = "x--help" ]; then + print_usage + exit 1 +fi SVN_ST_UNKNOWN_COLOR=$(echo -e '\033[1;34m') # Blue SVN_ST_DELETED_COLOR=$(echo -e '\033[0;31m') # Red