aboutsummaryrefslogtreecommitdiffstats
path: root/init-repository
diff options
context:
space:
mode:
authorMarius Storm-Olsen <marius.storm-olsen@nokia.com>2011-05-04 12:40:38 -0500
committerMarius Storm-Olsen <marius.storm-olsen@nokia.com>2011-05-05 10:38:23 -0500
commit1a9f4af89f03438a049f01c242ad20e8506ac738 (patch)
treed353e07ff8d8b8094d91fdd12109135bc14dbcd9 /init-repository
parent257d74c4760f39b0f86a13be00911cdb2ec747ea (diff)
Illegal->Unknown and show usage on wrong options
Reviewed-by: axis
Diffstat (limited to 'init-repository')
-rwxr-xr-xinit-repository4
1 files changed, 3 insertions, 1 deletions
diff --git a/init-repository b/init-repository
index ef2e6d55..a0bef71a 100755
--- a/init-repository
+++ b/init-repository
@@ -96,7 +96,9 @@ while (@ARGV) {
} elsif ($arg eq "-no-update") {
$no_update = 1;
} else {
- die("Illegal argument: $arg");
+ print("*** Unknown option: $arg\n");
+ printUsage();
+ exit(1);
}
shift;
}