aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/args.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutil/args.cc')
-rw-r--r--src/libutil/args.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libutil/args.cc b/src/libutil/args.cc
index 0eed49454..19a45d7e9 100644
--- a/src/libutil/args.cc
+++ b/src/libutil/args.cc
@@ -66,6 +66,7 @@ void Args::printHelp(const string & programName, std::ostream & out)
std::cout << renderLabels({exp.label});
// FIXME: handle arity > 1
if (exp.arity == 0) std::cout << "...";
+ if (exp.optional) std::cout << "?";
}
std::cout << "\n";