]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
ip link: Fix indenting in help text
authorPhil Sutter <phil@nwl.cc>
Sat, 29 Aug 2020 10:18:35 +0000 (12:18 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 31 Aug 2020 19:32:26 +0000 (12:32 -0700)
Indenting of 'ip link set' options below 'link-netns' was wrong, they
should be on the same level as the above.

While being at it, fix closing brackets in vf-specific options. Also
write node/port_guid parameters in upper-case without curly braces: They
are supposed to be replaced by values, not put literally.

Fixes: 8589eb4efdf2a ("treewide: refactor help messages")
Fixes: 5a3ec4ba64783 ("iplink: Update usage in help message")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
ip/iplink.c

index 7d4b244d1d266b34d0214ae555fd4de978f10c70..5ec33a98b96e95f00ebd88dd511f0fd482fd5db7 100644 (file)
@@ -86,26 +86,26 @@ void iplink_usage(void)
                "               [ mtu MTU ]\n"
                "               [ netns { PID | NAME } ]\n"
                "               [ link-netns NAME | link-netnsid ID ]\n"
-               "                       [ alias NAME ]\n"
-               "                       [ vf NUM [ mac LLADDR ]\n"
-               "                                [ vlan VLANID [ qos VLAN-QOS ] [ proto VLAN-PROTO ] ]\n"
-               "                                [ rate TXRATE ]\n"
-               "                                [ max_tx_rate TXRATE ]\n"
-               "                                [ min_tx_rate TXRATE ]\n"
-               "                                [ spoofchk { on | off} ]\n"
-               "                                [ query_rss { on | off} ]\n"
-               "                                [ state { auto | enable | disable} ] ]\n"
-               "                                [ trust { on | off} ] ]\n"
-               "                                [ node_guid { eui64 } ]\n"
-               "                                [ port_guid { eui64 } ]\n"
-               "                       [ { xdp | xdpgeneric | xdpdrv | xdpoffload } { off |\n"
-               "                                 object FILE [ section NAME ] [ verbose ] |\n"
-               "                                 pinned FILE } ]\n"
-               "                       [ master DEVICE ][ vrf NAME ]\n"
-               "                       [ nomaster ]\n"
-               "                       [ addrgenmode { eui64 | none | stable_secret | random } ]\n"
-               "                       [ protodown { on | off } ]\n"
-               "                       [ gso_max_size BYTES ] | [ gso_max_segs PACKETS ]\n"
+               "               [ alias NAME ]\n"
+               "               [ vf NUM [ mac LLADDR ]\n"
+               "                        [ vlan VLANID [ qos VLAN-QOS ] [ proto VLAN-PROTO ] ]\n"
+               "                        [ rate TXRATE ]\n"
+               "                        [ max_tx_rate TXRATE ]\n"
+               "                        [ min_tx_rate TXRATE ]\n"
+               "                        [ spoofchk { on | off} ]\n"
+               "                        [ query_rss { on | off} ]\n"
+               "                        [ state { auto | enable | disable} ]\n"
+               "                        [ trust { on | off} ]\n"
+               "                        [ node_guid EUI64 ]\n"
+               "                        [ port_guid EUI64 ] ]\n"
+               "               [ { xdp | xdpgeneric | xdpdrv | xdpoffload } { off |\n"
+               "                         object FILE [ section NAME ] [ verbose ] |\n"
+               "                         pinned FILE } ]\n"
+               "               [ master DEVICE ][ vrf NAME ]\n"
+               "               [ nomaster ]\n"
+               "               [ addrgenmode { eui64 | none | stable_secret | random } ]\n"
+               "               [ protodown { on | off } ]\n"
+               "               [ gso_max_size BYTES ] | [ gso_max_segs PACKETS ]\n"
                "\n"
                "       ip link show [ DEVICE | group GROUP ] [up] [master DEV] [vrf NAME] [type TYPE]\n"
                "\n"