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:
parent
a7bba1bf48
commit
71f1cb3b8a
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user