summaryrefslogtreecommitdiff
path: root/git-svn.perl
diff options
context:
space:
mode:
authorClemens Buchacher <drizzd@aon.at>2011-10-03 18:21:36 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-10-05 17:47:10 (GMT)
commit87182b17ed471a7b9cbbc24e1c02f90c8725dc6f (patch)
treee2f6010409a4ae975cf36439cfb384b08b75e5fc /git-svn.perl
parent703f05ad5835cff92b12c29aecf8d724c8c847e2 (diff)
downloadgit-87182b17ed471a7b9cbbc24e1c02f90c8725dc6f.zip
git-87182b17ed471a7b9cbbc24e1c02f90c8725dc6f.tar.gz
git-87182b17ed471a7b9cbbc24e1c02f90c8725dc6f.tar.bz2
use -h for synopsis and --help for manpage consistently
A few scripted Porcelain implementations pretend as if the routine to show their own help messages are triggered upon "git cmd --help", but a command line parser of "git" will hijack such a request and shows the manpage for the cmd subcommand. Leaving the code to handle such input is simply misleading. Signed-off-by: Clemens Buchacher <drizzd@aon.at> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-svn.perl')
-rwxr-xr-xgit-svn.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-svn.perl b/git-svn.perl
index 351e743..a0410f0 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -299,7 +299,7 @@ read_git_config(\%opts);
if ($cmd && ($cmd eq 'log' || $cmd eq 'blame')) {
Getopt::Long::Configure('pass_through');
}
-my $rv = GetOptions(%opts, 'help|H|h' => \$_help, 'version|V' => \$_version,
+my $rv = GetOptions(%opts, 'h|H' => \$_help, 'version|V' => \$_version,
'minimize-connections' => \$Git::SVN::Migration::_minimize,
'id|i=s' => \$Git::SVN::default_ref_id,
'svn-remote|remote|R=s' => sub {