summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-rw-r--r--cli/html.cxx4
-rw-r--r--cli/man.cxx4
-rw-r--r--cli/source.cxx6
3 files changed, 7 insertions, 7 deletions
diff --git a/cli/html.cxx b/cli/html.cxx
index 8897f4e..1b60827 100644
--- a/cli/html.cxx
+++ b/cli/html.cxx
@@ -44,7 +44,7 @@ namespace
std::set<string> arg_set;
- if (type != "bool")
+ if (type != "bool" || doc.size () >= 3)
{
string s (
translate_arg (
@@ -60,7 +60,7 @@ namespace
// If we have both the long and the short descriptions, use
// the long one.
//
- if (type == "bool")
+ if (type == "bool" && doc.size () < 3)
{
if (doc.size () > 1)
d = doc[1];
diff --git a/cli/man.cxx b/cli/man.cxx
index 576ee04..218cd57 100644
--- a/cli/man.cxx
+++ b/cli/man.cxx
@@ -44,7 +44,7 @@ namespace
std::set<string> arg_set;
- if (type != "bool")
+ if (type != "bool" || doc.size () >= 3)
{
string s (
translate_arg (
@@ -60,7 +60,7 @@ namespace
// If we have both the long and the short descriptions, use
// the long one.
//
- if (type == "bool")
+ if (type == "bool" && doc.size () < 3)
{
if (doc.size () > 1)
d = doc[1];
diff --git a/cli/source.cxx b/cli/source.cxx
index 7fb1391..2bf1c0f 100644
--- a/cli/source.cxx
+++ b/cli/source.cxx
@@ -203,7 +203,7 @@ namespace
string type (o.type ().name ());
- if (type != "bool")
+ if (type != "bool" || doc.size () >= 3)
{
l++; // ' ' seperator
@@ -260,7 +260,7 @@ namespace
string type (o.type ().name ());
- if (type != "bool")
+ if (type != "bool" || doc.size () >= 3)
{
os << ' ';
l++;
@@ -284,7 +284,7 @@ namespace
//
string d;
- if (type == "bool")
+ if (type == "bool" && doc.size () < 3)
{
if (doc.size () > 1)
d = doc[0];