Only make extra newline before example for top-level args

experiment/srcref_basic_cfg
Martchus 5 years ago
parent 8750e385f1
commit 027e784f1c
  1. 2
      application/argumentparser.cpp

@ -398,7 +398,7 @@ void Argument::printInfo(ostream &os, unsigned char indentation) const
arg->printInfo(os, indentation);
}
if (notEmpty(example())) {
if (!subArguments().empty()) {
if (indentation == 2 && !subArguments().empty()) {
os << '\n';
}
os << Indentation(indentation) << "example: ";

Loading…
Cancel
Save