mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-07-05 17:48:38 +00:00
pdftohtml/pdftocairo/etc style usage defaults
This commit is contained in:
parent
40e9f89833
commit
35d9668e90
|
@ -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
|
} // namespace pdf2htmlEX
|
||||||
|
|
|
@ -162,12 +162,6 @@ void ArgParser::ArgEntry<T, Tv>::show_usage(std::ostream & out) const
|
||||||
if(need_arg)
|
if(need_arg)
|
||||||
{
|
{
|
||||||
sout << " <arg>";
|
sout << " <arg>";
|
||||||
if(!dont_show_default)
|
|
||||||
{
|
|
||||||
sout << " (=";
|
|
||||||
dump_value(sout, default_value);
|
|
||||||
sout << ")";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string s = sout.str();
|
std::string s = sout.str();
|
||||||
|
@ -176,7 +170,16 @@ void ArgParser::ArgEntry<T, Tv>::show_usage(std::ostream & out) const
|
||||||
for(int i = s.size(); i < arg_col_width; ++i)
|
for(int i = s.size(); i < arg_col_width; ++i)
|
||||||
out << ' ';
|
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
|
} // namespace ArgParser
|
||||||
|
|
Loading…
Reference in New Issue
Block a user