git-remote: no longer silent on unknown commands.
authorQuy Tonthat <qtonthat@gmail.com>
Sat, 13 Jan 2007 11:55:21 +0000 (22:55 +1100)
committerJunio C Hamano <junkio@cox.net>
Sat, 13 Jan 2007 18:03:44 +0000 (10:03 -0800)
Signed-off-by: Quy Tonthat <qtonthat@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-remote.perl

index 059c141b68e829c7114d09ed9f4541b9db4c3d66..fc055b6d9577b8667e104a9e1528f43cfe29f7e3 100755 (executable)
@@ -274,4 +274,9 @@ elsif ($ARGV[0] eq 'add') {
        }
        add_remote($ARGV[1], $ARGV[2]);
 }
-
+else {
+       print STDERR "Usage: git remote\n";
+       print STDERR "       git remote add <name> <url>\n";
+       print STDERR "       git remote show <name>\n";
+       exit(1);
+}