diff options
author | Heinz Mauelshagen <heinzm@redhat.com> | 2017-03-24 15:14:21 +0100 |
---|---|---|
committer | Heinz Mauelshagen <heinzm@redhat.com> | 2017-03-24 15:14:21 +0100 |
commit | 4046f9bd956fec51769dc9d43afcd899d2c117b4 (patch) | |
tree | 6c691b0948c0a91ab2dd141c6711aa1f5a82bc6e | |
parent | e9433a9de9953171033e10bad9cf9689bd978313 (diff) | |
download | lvm2-4046f9bd956fec51769dc9d43afcd899d2c117b4.tar.gz |
man/help: avoid escaping of '-' with --help
-rw-r--r-- | tools/command.c | 3 |
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; |