diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2018-07-08 19:42:08 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2018-07-09 00:15:21 +0100 |
commit | 12a135919628ab710b3da22aca356726ea80bd39 (patch) | |
tree | d3d577759d2339036275c7ae5fce9c3bf766a6cd | |
parent | e61a5d637119adfbdb1b38f3a23e36cb7da6a7ac (diff) |
git-debrebase: Replace `die badusage' with `badusage'.
badusage contains a call to finish. So the die is redundant and never
gets called.
No functional change.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
-rwxr-xr-x | git-debrebase | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/git-debrebase b/git-debrebase index a79b486..83abc3b 100755 --- a/git-debrebase +++ b/git-debrebase @@ -1496,7 +1496,7 @@ sub cmd_status () { sub cmd_stitch () { my $prose = 'stitch'; - GetOptions('prose=s', \$prose) or die badusage("bad options to stitch"); + GetOptions('prose=s', \$prose) or badusage("bad options to stitch"); badusage "no arguments allowed" if @ARGV; do_stitch $prose, 0; } @@ -1560,7 +1560,7 @@ sub make_patches ($) { sub cmd_make_patches () { my $opt_quiet_would_amend; GetOptions('quiet-would-amend!', \$opt_quiet_would_amend) - or die badusage("bad options to make-patches"); + or badusage("bad options to make-patches"); badusage "no arguments allowed" if @ARGV; my $old_head = get_head(); my $new = make_patches $old_head; @@ -1741,7 +1741,7 @@ GetOptions("D+" => \$debuglevel, # approach. '-i=s{0,}' does not work with bundling. push @$opt_defaultcmd_interactive, @ARGV; @ARGV=(); - }) or die badusage "bad options\n"; + }) or badusage "bad options\n"; initdebug('git-debrebase '); enabledebug if $debuglevel; |