git-cvsexportcommit.perl: Fix usage() output.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Kevin Geiss committed
Nov 14, 2005 at 09:45 UTC
0ff2ce9d8a305038c0c116cd1e3b478a9f5b81c1
1 file changed
+2
-2
git-cvsexportcommit.perl
+2
-2
@@ -4,6 +4,7 @@ use strict;
4
use Getopt::Std;
5
use File::Temp qw(tempdir);
6
use Data::Dumper;
7
+use File::Basename qw(basename);
8
9
unless ($ENV{GIT_DIR} && -r $ENV{GIT_DIR}){
10
die "GIT_DIR is not defined or is unreadable";
@@ -206,8 +207,7 @@ if ($opt_c) {
207
}
208
sub usage {
209
print STDERR <<END;
209
-Usage: GIT_DIR=/path/to/.gi ${\basename $0} # fetch/update GIT from CVS
210
- [-h] [-p] [ parent ] commit
210
+Usage: GIT_DIR=/path/to/.git ${\basename $0} [-h] [-p] [-v] [-c] [ parent ] commit
211
END
212
exit(1);
213
}