]> git.proxmox.com Git - mirror_iproute2.git/commit
ip: link: Unify link type help functions a bit
authorPhil Sutter <phil@nwl.cc>
Tue, 28 Mar 2017 21:19:38 +0000 (23:19 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 4 Apr 2017 21:51:29 +0000 (14:51 -0700)
commit8b47135474cde4f0f8c9991741132b930bf3e192
treede6881c40af0407941eb5975b57ea53677c12fcb
parente336868e0925e77fe933d83711941cafa6134e25
ip: link: Unify link type help functions a bit

Take help function in iplink_bridge.c as an example and make other link
types' help functions similar:

* Use a single fprintf() call (if possible).
* Don't state a full command line, just "... type OPTIONS".
* Put every option in it's own line, align options by column.
* List mandatory options first.

link_veth.c is intentionally left untouched because it's 'peer' option
eats all kinds of generic link options and the help text points this out
without duplicating all the options there again.

Signed-off-by: Phil Sutter <phil@nwl.cc>
ip/iplink_geneve.c
ip/iplink_ipoib.c
ip/iplink_vlan.c
ip/iplink_vxlan.c
ip/link_gre.c
ip/link_gre6.c
ip/link_ip6tnl.c
ip/link_iptnl.c
ip/link_vti.c