1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 13:00:08 +00:00

clean unuseful warning messages in ArgParser

This commit is contained in:
Lu Wang 2013-01-30 03:40:17 +08:00
parent a7bba1bf48
commit 71f1cb3b8a

View File

@ -76,7 +76,7 @@ void ArgParser::parse(int argc, char ** argv) const
int v = p->shortname;
if(!(opt_map.insert(make_pair(v, p)).second))
{
cerr << "Warning: duplicated shortname '" << v << "' used by -" << (char)(p->shortname) << " and -" << (char)(opt_map[p->shortname]->shortname) << endl;
cerr << "Warning: duplicated shortname: " << v << endl;
}
}
@ -93,7 +93,7 @@ void ArgParser::parse(int argc, char ** argv) const
}
if(!(opt_map.insert(make_pair(v, p)).second))
{
cerr << "Warning: duplicated shortname '" << v << "' used by --" << (p->name) << " and --" << (opt_map[p->shortname]->name) << endl;
cerr << "Warning: duplicated long name: " << (p->name) << endl;
}
}
}