[RFC PATCH 06/14] btrfs-progs: fix help, show long option in balance start and status

Anand Jain
2019-10-21T10:01:46Z

btrfs balance start|status support both short and long option
-v|--verbose however failed to show it in its --help. This patch fixes
the --help.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
---
cmds/balance.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cmds/balance.c b/cmds/balance.c
index d4916c5fb34e..06bab9f7f96f 100644
--- a/cmds/balance.c
+++ b/cmds/balance.c
@@ -492,7 +492,7 @@ static const char * const cmd_balance_start_usage[] = {
"-d[filters] act on data chunks",
"-m[filters] act on metadata chunks",
"-s[filters] act on system chunks (only under -f)",
- HELPINFO_INSERT_VERBOSE_SHORT,
+ HELPINFO_INSERT_VERBOSE,
"-f force a reduction of metadata integrity",
"--full-balance do not print warning and do not delay start",
"--background|--bg run the balance as a background process",
@@ -822,7 +822,7 @@ static const char * const cmd_balance_status_usage[] = {
"btrfs balance status [-v] <path>",
"Show status of running or paused balance",
"",
- HELPINFO_INSERT_VERBOSE_SHORT,
+ HELPINFO_INSERT_VERBOSE,
NULL
};

--
1.8.3.1