From: Karel Zak Date: Wed, 29 Mar 2017 10:00:48 +0000 (+0200) Subject: column: rename options X-Git-Tag: v2.30-rc1~56 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=01e335c9e49707e3361c1e15cfe712ac0958133f;p=thirdparty%2Futil-linux.git column: rename options Signed-off-by: Karel Zak --- diff --git a/text-utils/column.1 b/text-utils/column.1 index b1e5fd885a..fa1540b836 100644 --- a/text-utils/column.1 +++ b/text-utils/column.1 @@ -60,12 +60,12 @@ Determine the number of columns the input contains and create a table. Columns are delimited with whitespace, by default, or with the characters supplied using the \fB\-\-output\-separator\fP option. Table output is useful for pretty-printing. -.IP "\fB\-N, \-\-table-colnames\fP \fInames\fP" +.IP "\fB\-N, \-\-table-columns\fP \fInames\fP" Specify the columns names by comma separated list of names. The names are used -for the table header. -.IP "\fB\-R, \-\-table-colright\fP \fIcolumns\fP" +for the table header or to addres column in option arguments. +.IP "\fB\-R, \-\-table-right\fP \fIcolumns\fP" Right align text in the specified columns. The \fIcolumns\fP is comma separated -list of the column names (see \fB\-\-table-colnames\fP) or column number. +list of the column names (see \fB\-\-table-columns\fP) or column number. .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" diff --git a/text-utils/column.c b/text-utils/column.c index ab700ab013..0db8fd5047 100644 --- a/text-utils/column.c +++ b/text-utils/column.c @@ -412,8 +412,8 @@ static void __attribute__((__noreturn__)) usage(int rc) fputs(USAGE_OPTIONS, out); fputs(_(" -J, --json use JSON output format for table\n"), out); fputs(_(" -t, --table create a table\n"), out); - fputs(_(" -N, --table-colnames comma separated columns names\n"), out); - fputs(_(" -R, --table-colright right align text in these columns\n"), out); + fputs(_(" -N, --table-columns comma separated columns names\n"), out); + fputs(_(" -R, --table-right right align text in these columns\n"), out); fputs(_(" -n, --table-name table name for JSON output\n"), out); fputs(_(" -s, --separator possible table delimiters\n"), out); fputs(_(" -o, --output-separator columns separator for table output\n" @@ -449,8 +449,8 @@ int main(int argc, char **argv) { "output-width", required_argument, NULL, 'c' }, { "separator", required_argument, NULL, 's' }, { "table", no_argument, NULL, 't' }, - { "table-colnames", required_argument, NULL, 'N' }, - { "table-colright", required_argument, NULL, 'R' }, + { "table-columns", required_argument, NULL, 'N' }, + { "table-right", required_argument, NULL, 'R' }, { "table-name", required_argument, NULL, 'n' }, { "version", no_argument, NULL, 'V' }, { NULL, 0, NULL, 0 },