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

src/clapp/parser_types.cpp: rewrite gen_short_option_line()

parent e58351d1
No related branches found
No related tags found
1 merge request!22Add support for option-container
......@@ -103,13 +103,15 @@ clapp::parser::types::variant_opt_conf_container_t::gen_short_option_line()
it != containers.cend(); it++) {
Expects(*it != nullptr);
if (!short_line.empty()) {
short_line += " ";
}
if (logic_operator_type == logic_operator_type_t::logic_xor) {
short_line += "| ";
if (logic_operator_type == logic_operator_type_t::logic_xor) {
short_line += " | ";
} else {
short_line += " ";
}
}
short_line += "( " + (*it)->gen_short_option_line() + " )";
}
return 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