mirror of https://github.com/digint/btrbk
btrbk: cosmetics: use heredocs for the help message
Avoids use having to use 40 print's and having to quote each line and is much easier to edit.pull/219/merge
parent
1d0d57ffac
commit
969569592a
86
btrbk
86
btrbk
|
@ -303,48 +303,50 @@ sub VERSION_MESSAGE
|
||||||
|
|
||||||
sub HELP_MESSAGE
|
sub HELP_MESSAGE
|
||||||
{
|
{
|
||||||
print STDERR "usage: btrbk [options] <command> [filter...]\n";
|
print STDERR <<"END_HELP";
|
||||||
print STDERR "\n";
|
usage: btrbk [options] <command> [filter...]
|
||||||
print STDERR "options:\n";
|
|
||||||
# "--------------------------------------------------------------------------------"; # 80
|
options:
|
||||||
print STDERR " -h, --help display this help message\n";
|
--------------------------------------------------------------------------------
|
||||||
print STDERR " --version display version information\n";
|
-h, --help display this help message
|
||||||
print STDERR " -c, --config=FILE specify configuration file\n";
|
--version display version information
|
||||||
print STDERR " -n, --dry-run perform a trial run with no changes made\n";
|
-c, --config=FILE specify configuration file
|
||||||
print STDERR " -p, --preserve preserve all (do not delete anything)\n";
|
-n, --dry-run perform a trial run with no changes made
|
||||||
print STDERR " --preserve-snapshots preserve snapshots (do not delete snapshots)\n";
|
-p, --preserve preserve all (do not delete anything)
|
||||||
print STDERR " --preserve-backups preserve backups (do not delete backups)\n";
|
--preserve-snapshots preserve snapshots (do not delete snapshots)
|
||||||
print STDERR " --wipe delete all but latest snapshots\n";
|
--preserve-backups preserve backups (do not delete backups)
|
||||||
print STDERR " -v, --verbose be verbose (set loglevel=info)\n";
|
--wipe delete all but latest snapshots
|
||||||
print STDERR " -q, --quiet be quiet (do not print backup summary)\n";
|
-v, --verbose be verbose (set loglevel=info)
|
||||||
print STDERR " -l, --loglevel=LEVEL set logging level (warn, info, debug, trace)\n";
|
-q, --quiet be quiet (do not print backup summary)
|
||||||
print STDERR " -t, --table change output to table format\n";
|
-l, --loglevel=LEVEL set logging level (warn, info, debug, trace)
|
||||||
print STDERR " --format=FORMAT change output format, FORMAT=table|long|raw\n";
|
-t, --table change output to table format
|
||||||
print STDERR " --print-schedule print scheduler details (for the \"run\" command)\n";
|
--format=FORMAT change output format, FORMAT=table|long|raw
|
||||||
print STDERR " --progress show progress bar on send-receive operation\n";
|
--print-schedule print scheduler details (for the "run" command)
|
||||||
print STDERR "\n";
|
--progress show progress bar on send-receive operation
|
||||||
print STDERR "commands:\n";
|
|
||||||
print STDERR " run run snapshot and backup operations\n";
|
commands:
|
||||||
print STDERR " dryrun don't run btrfs commands; show what would be executed\n";
|
run run snapshot and backup operations
|
||||||
print STDERR " snapshot run snapshot operations only\n";
|
dryrun don't run btrfs commands; show what would be executed
|
||||||
print STDERR " resume run backup operations, and delete snapshots\n";
|
snapshot run snapshot operations only
|
||||||
print STDERR " prune only delete snapshots and backups\n";
|
resume run backup operations, and delete snapshots
|
||||||
print STDERR " archive <src> <dst> recursively copy all subvolumes (experimental)\n";
|
prune only delete snapshots and backups
|
||||||
print STDERR " clean delete incomplete (garbled) backups\n";
|
archive <src> <dst> recursively copy all subvolumes (experimental)
|
||||||
print STDERR " stats print snapshot/backup statistics\n";
|
clean delete incomplete (garbled) backups
|
||||||
print STDERR " list <subcommand> available subcommands are:\n";
|
stats print snapshot/backup statistics
|
||||||
print STDERR " backups all backups and corresponding snapshots\n";
|
list <subcommand> available subcommands are:
|
||||||
print STDERR " snapshots all snapshots and corresponding backups\n";
|
backups all backups and corresponding snapshots
|
||||||
print STDERR " latest most recent snapshots and backups\n";
|
snapshots all snapshots and corresponding backups
|
||||||
print STDERR " config configured source/snapshot/target relations\n";
|
latest most recent snapshots and backups
|
||||||
print STDERR " source configured source/snapshot relations\n";
|
config configured source/snapshot/target relations
|
||||||
print STDERR " volume configured volume sections\n";
|
source configured source/snapshot relations
|
||||||
print STDERR " target configured targets\n";
|
volume configured volume sections
|
||||||
print STDERR " usage print filesystem usage\n";
|
target configured targets
|
||||||
print STDERR " origin <subvol> print origin information for subvolume\n";
|
usage print filesystem usage
|
||||||
print STDERR " diff <from> <to> shows new files between related subvolumes\n";
|
origin <subvol> print origin information for subvolume
|
||||||
print STDERR "\n";
|
diff <from> <to> shows new files between related subvolumes
|
||||||
print STDERR "For additional information, see $PROJECT_HOME\n";
|
|
||||||
|
For additional information, see $PROJECT_HOME
|
||||||
|
END_HELP
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue