Skip to content

Commit

Permalink
Merge branch 'cb/send-email-help'
Browse files Browse the repository at this point in the history
* cb/send-email-help:
  send-email: add option -h
  • Loading branch information
Junio C Hamano committed Oct 5, 2011
2 parents 6cf5b81 + c597824 commit 3c18ee7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion git-send-email.perl
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,9 @@ sub signal_handler {
# Begin by accumulating all the variables (defined above), that we will end up
# needing, first, from the command line:

my $rc = GetOptions("sender|from=s" => \$sender,
my $help;
my $rc = GetOptions("h" => \$help,
"sender|from=s" => \$sender,
"in-reply-to=s" => \$initial_reply_to,
"subject=s" => \$initial_subject,
"to=s" => \@initial_to,
Expand Down Expand Up @@ -313,6 +315,7 @@ sub signal_handler {
"force" => \$force,
);

usage() if $help;
unless ($rc) {
usage();
}
Expand Down

0 comments on commit 3c18ee7

Please sign in to comment.