From 22bee4fbdbf3cf52ac6a390b3c1ae983b5350760 Mon Sep 17 00:00:00 2001 From: David Teigland Date: Wed, 15 Feb 2017 14:00:09 -0600 Subject: [PATCH] help/man: remove commas from list of options Using commas between options does not seem to be done anywhere else, so remove them. --- tools/command.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/tools/command.c b/tools/command.c index ac72c4988..9f2256ba7 100644 --- a/tools/command.c +++ b/tools/command.c @@ -1624,7 +1624,7 @@ void print_usage(struct command *cmd) if (first) printf("\n\t["); else - printf(",\n\t "); + printf("\n\t "); first = 0; printf(" %s", opt_names[opt_enum].long_opt); @@ -1637,7 +1637,7 @@ void print_usage(struct command *cmd) if (first) printf("\n\t["); else - printf(",\n\t "); + printf("\n\t "); printf(" COMMON_OPTIONS ]"); } @@ -1687,7 +1687,7 @@ void print_usage_common(struct command_name *cname, struct command *cmd) if (first) printf("\n\t["); else - printf(",\n\t "); + printf("\n\t "); first = 0; for (oo = 0; oo < cmd->oo_count; oo++) { @@ -1712,7 +1712,7 @@ void print_usage_common(struct command_name *cname, struct command *cmd) if (first) printf("\n\t["); else - printf(",\n\t "); + printf("\n\t "); first = 0; printf(" %s", opt_names[opt_enum].long_opt); @@ -2081,7 +2081,6 @@ void print_man_usage(char *lvmname, struct command *cmd) continue; if (sep) { - printf(","); printf("\n.br\n"); printf(" "); } @@ -2112,7 +2111,6 @@ void print_man_usage(char *lvmname, struct command *cmd) continue; if (sep) { - printf(","); printf("\n.br\n"); printf(" "); } @@ -2130,7 +2128,6 @@ void print_man_usage(char *lvmname, struct command *cmd) } if (sep) { - printf(","); printf("\n.br\n"); printf(" "); /* space alignment without short opt */ @@ -2209,7 +2206,6 @@ void print_man_usage_common(struct command *cmd) continue; if (sep) { - printf(","); printf("\n.br\n"); printf(" "); } @@ -2246,7 +2242,6 @@ void print_man_usage_common(struct command *cmd) continue; if (sep) { - printf(","); printf("\n.br\n"); printf(" "); } -- 2.43.5