From 80f66ee041423930d99a8f958082fffa4e82f0b9 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 13 Dec 2017 15:04:48 -0800 Subject: 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 Acked-by: Justin Pettit --- lib/table.man | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/table.man') 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. -- cgit v1.2.1