From: Eric Wong Date: Thu, 14 Nov 2019 08:47:40 +0000 (+0000) Subject: convert: remove duplicated GetOptions() call X-Git-Tag: v1.3.0~309 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=bc75e2ff649c4aab23320994e0d5bf96319a5595;p=public-inbox.git convert: remove duplicated GetOptions() call We only need to parse the command-line once. --- diff --git a/script/public-inbox-convert b/script/public-inbox-convert index 3182410e..9bee5e7a 100755 --- a/script/public-inbox-convert +++ b/script/public-inbox-convert @@ -20,7 +20,6 @@ my %opts = ( '--index!' => \$index, ); GetOptions(%opts) or die "bad command-line args\n$usage"; -GetOptions(%opts) or die "bad command-line args\n$usage"; my $old_dir = shift or die $usage; my $new_dir = shift or die $usage; die "$new_dir exists\n" if -d $new_dir;