]> Sergey Matveev's repositories - public-inbox.git/commitdiff
convert: remove duplicated GetOptions() call
authorEric Wong <e@80x24.org>
Thu, 14 Nov 2019 08:47:40 +0000 (08:47 +0000)
committerEric Wong <e@80x24.org>
Thu, 14 Nov 2019 09:03:48 +0000 (09:03 +0000)
We only need to parse the command-line once.

script/public-inbox-convert

index 3182410e0a6f0e5037bc41b3b0a8bd040389f072..9bee5e7a323b437eaa0c6077458879a0b2464301 100755 (executable)
@@ -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;