[lvm-devel] master - man/help: avoid escaping of '-' with --help
Heinz Mauelshagen
heinzm at sourceware.org
Fri Mar 24 14:18:48 UTC 2017
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=4046f9bd956fec51769dc9d43afcd899d2c117b4
Commit: 4046f9bd956fec51769dc9d43afcd899d2c117b4
Parent: e9433a9de9953171033e10bad9cf9689bd978313
Author: Heinz Mauelshagen <heinzm at redhat.com>
AuthorDate: Fri Mar 24 15:14:21 2017 +0100
Committer: Heinz Mauelshagen <heinzm at redhat.com>
CommitterDate: Fri Mar 24 15:14:21 2017 +0100
man/help: avoid escaping of '-' with --help
---
tools/command.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/tools/command.c b/tools/command.c
index 58cd17d..66d5711 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;
More information about the lvm-devel
mailing list