diff --git a/ChangeLog b/ChangeLog index 7885b10..d980a7f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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). diff --git a/btrbk b/btrbk index 51556b3..e907d76 100755 --- a/btrbk +++ b/btrbk @@ -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, )) { diff --git a/doc/btrbk.1 b/doc/btrbk.1 index a1636f2..ac5e6e1 100644 --- a/doc/btrbk.1 +++ b/doc/btrbk.1 @@ -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