aboutsummaryrefslogtreecommitdiff
path: root/paludis/args/man.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/args/man.cc')
-rw-r--r--paludis/args/man.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/paludis/args/man.cc b/paludis/args/man.cc
index 7cd0fa4..d33a7f7 100644
--- a/paludis/args/man.cc
+++ b/paludis/args/man.cc
@@ -315,7 +315,12 @@ AsciidocWriter::arg_group_item(const char & short_name, const std::string & long
_os << "-" << short_name << " , ";
_os << "--" << long_name;
if (! negated_long_name.empty())
- _os << " (" << "--" << negated_long_name << ")";
+ {
+ _os << " (";
+ if (short_name)
+ _os << "+" << short_name << " , ";
+ _os << "--" << negated_long_name << ")";
+ }
_os << "*::" << endl;
_os << " ";
escape_asciidoc(_os, description);