MCPcopy Create free account
hub / github.com/OpenVPN/openvpn3-linux / gen_help_line

Method gen_help_line

src/common/cmdargparser.cpp:543–554  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

541
542
543std::vector<std::string> SingleCommandOption::gen_help_line(const unsigned int width)
544{
545 std::vector<std::string> ret;
546 ret.push_back(gen_help_line_generator(shortopt, longopt, help_text, width));
547 if (!alias.empty())
548 {
549 std::stringstream alias_help;
550 alias_help << "Alias for --" << longopt;
551 ret.push_back(gen_help_line_generator(0, alias, alias_help.str(), width));
552 }
553 return ret;
554}
555
556
557std::string SingleCommandOption::gen_help_line_generator(const char opt_short,

Callers 1

gen_helpMethod · 0.80

Calls 2

emptyMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected