git-remote: no longer silent on unknown commands.
Signed-off-by: Quy Tonthat <qtonthat@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Quy Tonthat committed
Jan 13, 2007 at 22:55 UTC
c03f77573ac4db7f549948c4c0de4fa3c9eb545c
1 file changed
+6
-1
git-remote.perl
+6
-1
@@ -274,4 +274,9 @@ elsif ($ARGV[0] eq 'add') {
274
}
275
add_remote($ARGV[1], $ARGV[2]);
276
}
277
-
277
+else {
278
+ print STDERR "Usage: git remote\n";
279
+ print STDERR " git remote add <name> <url>\n";
280
+ print STDERR " git remote show <name>\n";
281
+ exit(1);
282
+}