summaryrefslogtreecommitdiff
path: root/lib/table.man
diff options
context:
space:
mode:
authorBen Pfaff <blp@ovn.org>2017-12-13 15:04:48 -0800
committerBen Pfaff <blp@ovn.org>2017-12-22 11:50:33 -0800
commit80f66ee041423930d99a8f958082fffa4e82f0b9 (patch)
treedebec6351307bec395487f898eebc1ddab02961d /lib/table.man
parentbc7bcc408e52d5425eefc1845f15b1af4dc578cc (diff)
downloadopenvswitch-80f66ee041423930d99a8f958082fffa4e82f0b9.tar.gz
table: Add --max-column-width option.
This can make it easier to read tables that contain wide data in some columns. Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Justin Pettit <jpettit@ovn.org>
Diffstat (limited to 'lib/table.man')
-rw-r--r--lib/table.man5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/table.man b/lib/table.man
index 2b3874110..bec8292c6 100644
--- a/lib/table.man
+++ b/lib/table.man
@@ -69,3 +69,8 @@ This option does not affect JSON in tables, which is always printed
compactly.
.IP "\fB\-\-bare\fR"
Equivalent to \fB\-\-format=list \-\-data=bare \-\-no\-headings\fR.
+.IP "\fB\-\-max\-column-width=\fIn\fR"
+For table output only, limits the width of any column in the output to
+\fIn\fR columns. Longer cell data is truncated to fit, as necessary.
+Columns are always wide enough to display the column names, if the
+heading row is printed.