btrfs-progs: rescue: convert help text to option formatter

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2023-02-22 01:37:18 +01:00
parent 7b1e2e3b88
commit dc6a4265bf

View File

@ -44,9 +44,9 @@ static const char * const cmd_rescue_chunk_recover_usage[] = {
"btrfs rescue chunk-recover [options] <device>",
"Recover the chunk tree by scanning the devices one by one.",
"",
"-y Assume an answer of `yes' to all questions",
"-h Help",
"-v deprecated, alias for global -v option",
OPTLINE("-y", "assume an answer of `yes' to all questions"),
OPTLINE("-h", "help"),
OPTLINE("-v", "deprecated, alias for global -v option"),
HELPINFO_INSERT_GLOBALS,
HELPINFO_INSERT_VERBOSE,
NULL
@ -112,8 +112,8 @@ static const char * const cmd_rescue_super_recover_usage[] = {
"btrfs rescue super-recover [options] <device>",
"Recover bad superblocks from good copies",
"",
"-y Assume an answer of `yes' to all questions",
"-v deprecated, alias for global -v option",
OPTLINE("-y", "assume an answer of `yes' to all questions"),
OPTLINE("-v", "deprecated, alias for global -v option"),
HELPINFO_INSERT_GLOBALS,
HELPINFO_INSERT_VERBOSE,
NULL