mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 11:25:40 +03:00
don't output remaining args twice
This commit is contained in:
parent
5fefb0da47
commit
d006c6ef8c
@ -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`;
|
||||
|
Loading…
Reference in New Issue
Block a user