summaryrefslogtreecommitdiffstats
path: root/text-utils/column.1
diff options
context:
space:
mode:
authorKarel Zak2017-03-06 11:58:15 +0100
committerKarel Zak2017-05-02 12:18:00 +0200
commit9dbe8e1c023c7597b8885b39f50bbf1a452fcfdf (patch)
tree666d05249c68b6976611014526fdc6a260e48568 /text-utils/column.1
parentcolumn: add --table-colnames (diff)
downloadkernel-qcow2-util-linux-9dbe8e1c023c7597b8885b39f50bbf1a452fcfdf.tar.gz
kernel-qcow2-util-linux-9dbe8e1c023c7597b8885b39f50bbf1a452fcfdf.tar.xz
kernel-qcow2-util-linux-9dbe8e1c023c7597b8885b39f50bbf1a452fcfdf.zip
column: add --json
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'text-utils/column.1')
-rw-r--r--text-utils/column.15
1 files changed, 5 insertions, 0 deletions
diff --git a/text-utils/column.1 b/text-utils/column.1
index df097c37f..1dd1f8d99 100644
--- a/text-utils/column.1
+++ b/text-utils/column.1
@@ -45,6 +45,9 @@ are filled before rows. Input is taken from \fIfile\fR, or
otherwise from standard input. Empty lines are ignored.
.PP
.SH OPTIONS
+.IP "\fB\-J, \-\-json\fP"
+Use JSON output format to print the table, the option
+\fB\-\-table\-colnames\fP is required and the option \fB\-\-table\-name\fP is recommended.
.IP "\fB\-c, \-\-output\-width\fP \fIwidth\fP"
Output is formatted to a width specified as number of characters. The original
name of this option is --columns; this name deprecated since v2.30.
@@ -60,6 +63,8 @@ Table output is useful for pretty-printing.
.IP "\fB\-N, \-\-table-colnames\fP \fInames\fP"
Specify the columns names by comma separated list of names. The names are used
for the table header.
+.IP "\fB\-n, \-\-table-name\fP \fIname\fP"
+Specify the table name used for JSON output. The defaout is "table".
.IP "\fB\-x, \-\-fillrows\fP"
Fill rows before filling columns.
.IP "\fB\-V\fR, \fB\-\-version\fR"