btrbk: add "-t, --table" command line option (shortcut for "--format=table")

pull/57/head
Axel Burri 2015-10-12 17:13:23 +02:00
parent 07f7bfe3a6
commit 01b7ab0ebf
3 changed files with 10 additions and 3 deletions

View File

@ -4,9 +4,9 @@ btrbk-current
* Allow filtering subcommands by group as well as targets.
* Added "config print" command.
* Added "list" command (experimental).
* Added "--format=table|long|raw" command line option, producing
tabular and raw (machine-readable) output for "(dry)run", "tree"
and "list" commands.
* Added "--format=table|long|raw" and "-t, --table" command line
options, producing tabular and raw (machine-readable) output for
"(dry)run", "tree" and "list" commands.
* Added configuration option "ssh_cipher_spec" (close: #47).
* Added "target raw", with GnuPG and compression support
(experimental).

2
btrbk
View File

@ -155,6 +155,7 @@ sub HELP_MESSAGE
print STDERR " -v, --verbose be verbose (set loglevel=info)\n";
print STDERR " -q, --quiet be quiet (do not print summary for the \"run\" command)\n";
print STDERR " -l, --loglevel=LEVEL set logging level (warn, info, debug, trace)\n";
print STDERR " -t, --table change output to table format\n";
print STDERR " --format=FORMAT change output format, FORMAT=table|long|raw\n";
print STDERR " --progress show progress bar on send-receive operation\n";
print STDERR "\n";
@ -1770,6 +1771,7 @@ MAIN:
'verbose|v' => sub { $loglevel = 2; },
'loglevel|l=s' => \$loglevel,
'progress' => \$show_progress,
'table|t' => sub { $output_format = "table" },
'format=s' => \$output_format,
))
{

View File

@ -79,6 +79,11 @@ Set the level of verbosity. Accepted levels are warn, info, debug,
and trace.
.RE
.PP
\-t, \-\-table
.RS 4
Print output in table format (shortcut for "--format=table").
.RE
.PP
\-\-format table|long|raw
.RS 4
Print output in specified format. If set to "raw", prints