master - man/help: avoid escaping of '-' with --help
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=4046f9bd956fec51769dc9d43afcd899d2c117b4 Commit: 4046f9bd956fec51769dc9d43afcd899d2c117b4 Parent: e9433a9de9953171033e10bad9cf9689bd978313 Author: Heinz Mauelshagen <[email protected]> AuthorDate: Fri Mar 24 15:14:21 2017 +0100 Committer: Heinz Mauelshagen <[email protected]> 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(-)
tools/command.c +2 -1
@@ -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 ;