mirror of
https://github.com/openvswitch/ovs
synced 2025-10-29 15:28:56 +00:00
table: provide table formatting option help at runtime
Show table formatting options with help output from ovn-nbctl, obn-sbctl, ovs-vsctl, and vtep-ctl commands. Include "--data" option in ovsdb-client help output. Signed-off-by: Lance Richardson <lrichard@redhat.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
committed by
Ben Pfaff
parent
d897038a4a
commit
bcb58ce069
16
lib/table.c
16
lib/table.c
@@ -594,3 +594,19 @@ table_print(const struct table *table, const struct table_style *style)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
table_usage(void)
|
||||
{
|
||||
printf("\nOutput formatting options:\n"
|
||||
" -f, --format=FORMAT set output formatting to FORMAT\n"
|
||||
" (\"table\", \"html\", \"csv\", "
|
||||
"or \"json\")\n"
|
||||
" -d, --data=FORMAT set table cell output formatting to\n"
|
||||
" FORMAT (\"string\", \"bare\", "
|
||||
"or \"json\")\n"
|
||||
" --no-headings omit table heading row\n"
|
||||
" --pretty pretty-print JSON in output\n"
|
||||
" --bare equivalent to "
|
||||
"\"--format=list --data=bare --no-headings\"\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user