btrfs-progs: send: 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 c75cc187a8
commit 56666f95c5
1 changed files with 14 additions and 20 deletions

View File

@ -479,26 +479,20 @@ static const char * const cmd_send_usage[] = {
"which case 'btrfs send' will determine a suitable parent among the", "which case 'btrfs send' will determine a suitable parent among the",
"clone sources itself.", "clone sources itself.",
"", "",
"-e If sending multiple subvols at once, use the new", OPTLINE("-e", "if sending multiple subvols at once, use the new format and omit the end-cmd between the subvols"),
" format and omit the end-cmd between the subvols.", OPTLINE("-p <parent>", "send an incremental stream from <parent> to <subvol>"),
"-p <parent> Send an incremental stream from <parent> to", OPTLINE("-c <clone-src>", "Use this snapshot as a clone source for an incremental send (multiple allowed)"),
" <subvol>.", OPTLINE("-f <outfile>", "Output is normally written to stdout. To write to "
"-c <clone-src> Use this snapshot as a clone source for an ", "a file, use this option. An alternative would be to use pipes."),
" incremental send (multiple allowed)", OPTLINE("--no-data", "send in NO_FILE_DATA mode, Note: the output stream "
"-f <outfile> Output is normally written to stdout. To write to", "does not contain any file data and thus cannot be used "
" a file, use this option. An alternative would be to", "to transfer changes. This mode is faster and useful to "
" use pipes.", "show the differences in metadata."),
"--no-data send in NO_FILE_DATA mode, Note: the output stream", OPTLINE("--proto N", "use protocol version N, or 0 to use the highest version "
" does not contain any file data and thus cannot be used", "supported by the sending kernel (default: 1)"),
" to transfer changes. This mode is faster and useful to", OPTLINE("--compressed-data", "send data that is compressed on the filesystem directly without decompressing it"),
" show the differences in metadata.", OPTLINE("-v|--verbose", "deprecated, alias for global -v option"),
"--proto N use protocol version N, or 0 to use the highest version", OPTLINE("-q|--quiet", "deprecated, alias for global -q option"),
" supported by the sending kernel (default: 1)",
"--compressed-data",
" send data that is compressed on the filesystem directly",
" without decompressing it",
"-v|--verbose deprecated, alias for global -v option",
"-q|--quiet deprecated, alias for global -q option",
HELPINFO_INSERT_GLOBALS, HELPINFO_INSERT_GLOBALS,
HELPINFO_INSERT_VERBOSE, HELPINFO_INSERT_VERBOSE,
HELPINFO_INSERT_QUIET, HELPINFO_INSERT_QUIET,