1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2024-11-10 00:45:36 +00:00

wrong argument check in latan-resample

This commit is contained in:
Antonin Portelli 2016-06-15 19:22:24 +01:00
parent a89ed85e43
commit 582528f243

View File

@ -59,7 +59,7 @@ int main(int argc, char *argv[])
opt.addOption("" , "help" , OptParser::OptType::trigger, true,
"show this help message and exit");
parsed = opt.parse(argc, argv);
if (!parsed or (opt.getArgs().size() != 1) or opt.gotOption("help"))
if (!parsed or (opt.getArgs().size() != 2) or opt.gotOption("help"))
{
cerr << "usage: " << argv[0];
cerr << " <datafile list> <name list> <options>" << endl;