aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtrunk/src/jail-commit2
-rwxr-xr-xtrunk/src/jail-update2
2 files changed, 3 insertions, 1 deletions
diff --git a/trunk/src/jail-commit b/trunk/src/jail-commit
index 61b93bf..9e2a031 100755
--- a/trunk/src/jail-commit
+++ b/trunk/src/jail-commit
@@ -135,6 +135,8 @@ if [ "$1" == "--help" ]; then
usage
elif [ "$1" == "--all" ]; then
template_svn_commit $BASE_CONF/templates
+elif echo $1 | grep -q -e "^--"; then
+ usage
elif [ ! -z "$1" ]; then
do_commit $1 $2
else
diff --git a/trunk/src/jail-update b/trunk/src/jail-update
index 7252f94..8cfc49a 100755
--- a/trunk/src/jail-update
+++ b/trunk/src/jail-update
@@ -34,7 +34,7 @@ function usage {
}
-if [ -z "$1" ] || [ "$1" == "--help" ]; then
+if [ -z "$1" ] || [ "$1" == "--help" ] || echo $1 | grep -q -e "^--"; then
usage
exit 1
fi