summaryrefslogtreecommitdiff
path: root/ovsdb
diff options
context:
space:
mode:
authorLance Richardson <lrichard@redhat.com>2016-12-22 14:45:50 -0500
committerBen Pfaff <blp@ovn.org>2016-12-22 16:13:13 -0800
commitc4817da780613cf4bfd77694bf859ad96d99b93c (patch)
treecda654db83bc744158c2b316bf725fc671086388 /ovsdb
parentddf3352e03b409c3f5c16cbdb914e6453f36bebd (diff)
downloadopenvswitch-c4817da780613cf4bfd77694bf859ad96d99b93c.tar.gz
table: correct documented default format in man pages
There are currently five users of the table formatting library, all of which default to "list" except for ovsdb-client which defaults to "table". The library current default is "table", and the table.man man page fragment only considers ovs-vsctl to use something other than "table" as a default.As a result, the man pages for ovn-sbctl and vtep-ctl are currently incorrect (these options aren't documented in the ovn-nbctl man page, which will need to be addressed in a future patch). Fix by making the library default format "list" and handling ovsdb-client as the exception. Signed-off-by: Lance Richardson <lrichard@redhat.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'ovsdb')
-rw-r--r--ovsdb/ovsdb-client.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ovsdb/ovsdb-client.c b/ovsdb/ovsdb-client.c
index bd2f152f3..ba232fce1 100644
--- a/ovsdb/ovsdb-client.c
+++ b/ovsdb/ovsdb-client.c
@@ -193,6 +193,8 @@ parse_options(int argc, char *argv[])
};
char *short_options = ovs_cmdl_long_options_to_short_options(long_options);
+ table_style.format = TF_TABLE;
+
for (;;) {
int c;