summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinz Mauelshagen <heinzm@redhat.com>2017-03-24 15:14:21 +0100
committerHeinz Mauelshagen <heinzm@redhat.com>2017-03-24 15:14:21 +0100
commit4046f9bd956fec51769dc9d43afcd899d2c117b4 (patch)
tree6c691b0948c0a91ab2dd141c6711aa1f5a82bc6e
parente9433a9de9953171033e10bad9cf9689bd978313 (diff)
downloadlvm2-4046f9bd956fec51769dc9d43afcd899d2c117b4.tar.gz
man/help: avoid escaping of '-' with --help
-rw-r--r--tools/command.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/command.c b/tools/command.c
index 58cd17d1d..66d5711f2 100644
--- a/tools/command.c
+++ b/tools/command.c
@@ -1613,7 +1613,8 @@ static void _print_usage_description(struct command *cmd)
if (!bi && desc[di] == ' ')
continue;
- buf[bi++] = desc[di];
+ if (desc[di] != '\\')
+ buf[bi++] = desc[di];
if (bi == (MAX_LINE - 1))
break;