Skip to content

Commit 5366afa

Browse files
committed
Merge branch 'cb/do-not-pretend-to-hijack-long-help'
* cb/do-not-pretend-to-hijack-long-help: use -h for synopsis and --help for manpage consistently
2 parents 7ed72d1 + 87182b1 commit 5366afa

File tree

6 files changed

+6
-7
lines changed

6 files changed

+6
-7
lines changed

Documentation/blame-options.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,5 +117,4 @@ commit. And the default value is 40. If there are more than one
117117
take effect.
118118

119119
-h::
120-
--help::
121120
Show help message.

git-cvsserver.perl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,14 @@
109109
" --strict-paths : Don't allow recursing into subdirectories\n".
110110
" --export-all : Don't check for gitcvs.enabled in config\n".
111111
" --version, -V : Print version information and exit\n".
112-
" --help, -h, -H : Print usage information and exit\n".
112+
" -h, -H : Print usage information and exit\n".
113113
"\n".
114114
"<directory> ... is a list of allowed directories. If no directories\n".
115115
"are given, all are allowed. This is an additional restriction, gitcvs\n".
116116
"access still needs to be enabled by the gitcvs.enabled config option.\n".
117117
"Alternately, one directory may be specified in GIT_CVSSERVER_ROOT.\n";
118118

119-
my @opts = ( 'help|h|H', 'version|V',
119+
my @opts = ( 'h|H', 'version|V',
120120
'base-path=s', 'strict-paths', 'export-all' );
121121
GetOptions( $state, @opts )
122122
or die $usage;

git-difftool.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ sub generate_command
9797
$prompt = 'yes';
9898
next;
9999
}
100-
if ($arg eq '-h' || $arg eq '--help') {
100+
if ($arg eq '-h') {
101101
usage();
102102
}
103103
push @command, $arg;

git-pull.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ do
120120
--d|--dr|--dry|--dry-|--dry-r|--dry-ru|--dry-run)
121121
dry_run=--dry-run
122122
;;
123-
-h|--h|--he|--hel|--help|--help-|--help-a|--help-al|--help-all)
123+
-h|--help-all)
124124
usage
125125
;;
126126
*)

git-sh-setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ $LONG_USAGE"
9090
fi
9191
9292
case "$1" in
93-
-h|--h|--he|--hel|--help)
93+
-h)
9494
echo "$LONG_USAGE"
9595
exit
9696
esac

git-svn.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ BEGIN
299299
if ($cmd && ($cmd eq 'log' || $cmd eq 'blame')) {
300300
Getopt::Long::Configure('pass_through');
301301
}
302-
my $rv = GetOptions(%opts, 'help|H|h' => \$_help, 'version|V' => \$_version,
302+
my $rv = GetOptions(%opts, 'h|H' => \$_help, 'version|V' => \$_version,
303303
'minimize-connections' => \$Git::SVN::Migration::_minimize,
304304
'id|i=s' => \$Git::SVN::default_ref_id,
305305
'svn-remote|remote|R=s' => sub {

0 commit comments

Comments
 (0)