diff --git a/src/util/ArgParser.cc b/src/util/ArgParser.cc index 04381e6..de3b270 100644 --- a/src/util/ArgParser.cc +++ b/src/util/ArgParser.cc @@ -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 diff --git a/src/util/ArgParser.h b/src/util/ArgParser.h index 432ec59..24a7db9 100644 --- a/src/util/ArgParser.h +++ b/src/util/ArgParser.h @@ -162,12 +162,6 @@ void ArgParser::ArgEntry::show_usage(std::ostream & out) const if(need_arg) { sout << " "; - if(!dont_show_default) - { - sout << " (="; - dump_value(sout, default_value); - sout << ")"; - } } std::string s = sout.str(); @@ -175,8 +169,17 @@ void ArgParser::ArgEntry::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