don't output remaining args twice

This commit is contained in:
Hieu Hoang 2015-05-05 12:15:08 +04:00
parent 5fefb0da47
commit d006c6ef8c

View File

@ -20,9 +20,9 @@ die("ERROR: specify at least --bin BIN --text CORPUS --lm LM and --order N!")
unless defined($BIN) && defined($TEXT) && defined($LM) && defined($ORDER);
my $settings = join(' ', @ARGV);
my $cmd = "$BIN --text $TEXT --order $ORDER --arpa $LM $settings";
$cmd .= " -T $TMPDIR" if defined($TMPDIR);
$cmd .= " -S $MEMORY" if defined($MEMORY);
$cmd .= " " . join(' ', @ARGV) if scalar(@ARGV); # Pass remaining args through.
print STDERR "Executing: $cmd\n";
`$cmd`;