Add additional parameter validation.

This commit is contained in:
Ryan Curtin
2015-12-16 19:13:14 +00:00
parent 31c10fef76
commit 5ba11bc902
@@ -112,6 +112,10 @@ int main(int argc, char* argv[])
<< "--output_model_file (-M) are specified; no output will be saved."
<< endl;
if (CLI::HasParam("codes_file") && !CLI::HasParam("test_file"))
Log::Fatal << "--codes_file (-c) is specified, but no test matrix ("
<< "specified with --test_file or -T) is given to encode!" << endl;
if (!CLI::HasParam("training_file"))
{
if (CLI::HasParam("atoms"))