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

pdftohtml/pdftocairo/etc style usage defaults

This commit is contained in:
John Hewson 2013-01-28 22:26:07 +00:00
parent 40e9f89833
commit 35d9668e90
2 changed files with 12 additions and 9 deletions

View File

@ -164,6 +164,6 @@ ArgParser::ArgEntryBase::ArgEntryBase(const char * name, const char * descriptio
}
}
const int ArgParser::arg_col_width = 40;
const int ArgParser::arg_col_width = 31;
} // namespace pdf2htmlEX

View File

@ -162,12 +162,6 @@ void ArgParser::ArgEntry<T, Tv>::show_usage(std::ostream & out) const
if(need_arg)
{
sout << " <arg>";
if(!dont_show_default)
{
sout << " (=";
dump_value(sout, default_value);
sout << ")";
}
}
std::string s = sout.str();
@ -175,8 +169,17 @@ void ArgParser::ArgEntry<T, Tv>::show_usage(std::ostream & out) const
for(int i = s.size(); i < arg_col_width; ++i)
out << ' ';
out << " " << description << std::endl;
out << " " << description;
if(need_arg && !dont_show_default)
{
out << " (default is ";
dump_value(out, default_value);
out << ")";
}
out << std::endl;
}
} // namespace ArgParser