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:
parent
9a83a0b5c0
commit
d51075f05b
|
@ -1321,28 +1321,35 @@ out:
|
|||
}
|
||||
|
||||
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)",
|
||||
"",
|
||||
"-s|--snapshots get snapshots",
|
||||
"-x|--xattr restore extended attributes",
|
||||
"-m|--metadata restore owner, mode and times",
|
||||
"-S|--symlink restore symbolic links",
|
||||
"-i|--ignore-errors ignore errors",
|
||||
"-o|--overwrite overwrite",
|
||||
"-t <bytenr> tree location",
|
||||
"-f <bytenr> filesystem location",
|
||||
"-u|--super <mirror> super mirror",
|
||||
"-r|--root <rootid> root objectid",
|
||||
"-d find dir",
|
||||
"-l|--list-roots list tree roots",
|
||||
"-D|--dry-run dry run (only list files that would be recovered)",
|
||||
"--path-regex <regex>",
|
||||
" control:",
|
||||
" -D|--dry-run dry run (only list files that would be recovered)",
|
||||
" -i|--ignore-errors ignore errors",
|
||||
" -o|--overwrite overwrite",
|
||||
" restoration:",
|
||||
" -m|--metadata restore owner, mode and times",
|
||||
" -S|--symlink restore symbolic links",
|
||||
" -s|--snapshots get snapshots",
|
||||
" -x|--xattr restore extended attributes",
|
||||
" filtering:",
|
||||
" --path-regex <regex>",
|
||||
" restore only filenames matching regex,",
|
||||
" you have to use following syntax (possibly quoted):",
|
||||
" ^/(|home(|/username(|/Desktop(|/.*))))$",
|
||||
"-c ignore case (--path-regex only)",
|
||||
"-v|--verbose deprecated, alias for global -v option",
|
||||
" -c ignore case (--path-regex only)",
|
||||
" analysis:",
|
||||
" -d find dir",
|
||||
" -l|--list-roots list tree roots",
|
||||
" 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_VERBOSE,
|
||||
NULL
|
||||
|
|
Loading…
Reference in New Issue