From 1a9f4af89f03438a049f01c242ad20e8506ac738 Mon Sep 17 00:00:00 2001 From: Marius Storm-Olsen Date: Wed, 4 May 2011 12:40:38 -0500 Subject: [PATCH] Illegal->Unknown and show usage on wrong options Reviewed-by: axis --- init-repository | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; }