From 027e784f1ceee06e8b545f4092a8b96ad92fb367 Mon Sep 17 00:00:00 2001 From: Martchus Date: Fri, 29 Sep 2017 20:56:13 +0200 Subject: [PATCH] Only make extra newline before example for top-level args --- application/argumentparser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/argumentparser.cpp b/application/argumentparser.cpp index 7dbce7b..ae1a201 100644 --- a/application/argumentparser.cpp +++ b/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: ";