mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 19:27:11 +03:00
being safe and dying when unknown --cmdline-option supplied
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@824 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
parent
c6c02a83c6
commit
27fe632194
@ -17,8 +17,9 @@ my $results_dir;
|
||||
GetOptions("decoder=s" => \$decoder,
|
||||
"test=s" => \$test_name,
|
||||
"data-dir=s"=> \$data_dir,
|
||||
"test-dir=s"=> \$test_dir,
|
||||
"results-dir=s"=> \$results_dir,
|
||||
);
|
||||
) or exit 1;
|
||||
|
||||
die "Please specify a decoder with --decoder\n" unless $decoder;
|
||||
die "Please specify a test to run with --test\n" unless $test_name;
|
||||
|
@ -27,7 +27,7 @@ my $data_dir;
|
||||
|
||||
GetOptions("decoder=s" => \$decoder,
|
||||
"data-dir=s" => \$data_dir,
|
||||
);
|
||||
) or exit 1;
|
||||
|
||||
$data_dir = MosesRegressionTesting::find_data_directory($BIN_TEST, $data_dir);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user