]> git.ipfire.org Git - thirdparty/util-linux.git/commit
column: improve --table-hide
authorKarel Zak <kzak@redhat.com>
Wed, 8 Jun 2022 09:31:57 +0000 (11:31 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 8 Jun 2022 09:31:57 +0000 (11:31 +0200)
commitd83a5f8c2b49b9f3a3c01d43c10286fbe463161e
tree0e6f297cf44c929ae9f19ca16f207786028a6288
parent32e4c34f60a9fd20b2075eac9f7cefc364ed75b8
column: improve --table-hide

This option affects list of visible columns, so it's better to apply
it before any other flags, because "-1" placeholder depends on visible
columns. For example:

echo "A B C D" | column --table --table-maxout --table-right -1 --table-hide 4

needs to hide column #4 (D) and align #3 (C) to the right.

Signed-off-by: Karel Zak <kzak@redhat.com>
text-utils/column.c