Skip to content
Snippets Groups Projects
Commit 6af07aac authored by Martin Wölzer's avatar Martin Wölzer
Browse files

src/clapp/sub_parser.cpp: changed some methods/funcs to be easier to read

parent b9cbdfb0
No related branches found
No related tags found
2 merge requests!12Release 0.3.0 including non-param-options behavior change,!11Draft: Release 0.3.0
......@@ -41,6 +41,7 @@ clapp::parser::basic_sub_parser_t::basic_sub_parser_t(
}
std::string clapp::parser::basic_sub_parser_t::gen_short_line_prefix() const {
return parent_parser.gen_short_line_prefix() + " " + sub_parser_name +
gen_short_line();
const std::string short_line_prefix{parent_parser.gen_short_line_prefix()};
const std::string short_line{gen_short_line()};
return short_line_prefix + " " + sub_parser_name + short_line;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment