From c03f77573ac4db7f549948c4c0de4fa3c9eb545c Mon Sep 17 00:00:00 2001 From: Quy Tonthat Date: Sat, 13 Jan 2007 22:55:21 +1100 Subject: [PATCH] git-remote: no longer silent on unknown commands. Signed-off-by: Quy Tonthat Signed-off-by: Junio C Hamano --- git-remote.perl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/git-remote.perl b/git-remote.perl index 059c141b6..fc055b6d9 100755 --- a/git-remote.perl +++ b/git-remote.perl @@ -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 \n"; + print STDERR " git remote show \n"; + exit(1); +} -- 2.30.2