1
0
mirror of https://github.com/kdave/btrfs-progs synced 2025-04-30 15:07:56 +00:00

btrfs-progs: restore: group help options

Group the options in the help text by the purpose for clarity.

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2021-06-12 21:36:00 +02:00
parent 9a83a0b5c0
commit d51075f05b

View File

@ -1321,28 +1321,35 @@ out:
} }
static const char * const cmd_restore_usage[] = { static const char * const cmd_restore_usage[] = {
"btrfs restore [options] <device> <path> | -l <device>", "btrfs restore [options] <device> <path>\n"
"btrfs restore [options] -l <device>",
"Try to restore files from a damaged filesystem (unmounted)", "Try to restore files from a damaged filesystem (unmounted)",
"", "",
"-s|--snapshots get snapshots", " control:",
"-x|--xattr restore extended attributes", " -D|--dry-run dry run (only list files that would be recovered)",
"-m|--metadata restore owner, mode and times", " -i|--ignore-errors ignore errors",
"-S|--symlink restore symbolic links", " -o|--overwrite overwrite",
"-i|--ignore-errors ignore errors", " restoration:",
"-o|--overwrite overwrite", " -m|--metadata restore owner, mode and times",
"-t <bytenr> tree location", " -S|--symlink restore symbolic links",
"-f <bytenr> filesystem location", " -s|--snapshots get snapshots",
"-u|--super <mirror> super mirror", " -x|--xattr restore extended attributes",
"-r|--root <rootid> root objectid", " filtering:",
"-d find dir", " --path-regex <regex>",
"-l|--list-roots list tree roots", " restore only filenames matching regex,",
"-D|--dry-run dry run (only list files that would be recovered)", " you have to use following syntax (possibly quoted):",
"--path-regex <regex>", " ^/(|home(|/username(|/Desktop(|/.*))))$",
" restore only filenames matching regex,", " -c ignore case (--path-regex only)",
" you have to use following syntax (possibly quoted):", " analysis:",
" ^/(|home(|/username(|/Desktop(|/.*))))$", " -d find dir",
"-c ignore case (--path-regex only)", " -l|--list-roots list tree roots",
"-v|--verbose deprecated, alias for global -v option", " alternate starting point:",
" -f <bytenr> filesystem location",
" -r|--root <rootid> root objectid",
" -t <bytenr> tree location",
" -u|--super <mirror> super mirror",
" other:",
" -v|--verbose deprecated, alias for global -v option",
HELPINFO_INSERT_GLOBALS, HELPINFO_INSERT_GLOBALS,
HELPINFO_INSERT_VERBOSE, HELPINFO_INSERT_VERBOSE,
NULL NULL