]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
cmd: use spaces instead of tabs for usage indentation
authorFrank Villaro-Dixon <frank.villaro@infomaniak.com>
Tue, 5 Oct 2021 13:19:39 +0000 (15:19 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 6 Oct 2021 17:00:49 +0000 (10:00 -0700)
Fix rogue "tab after spaces" used for indentation of the documentation.
This causes rendering issues on terminals using a non-standard tab width.

Signed-off-by: Frank Villaro-Dixon <frank.villaro@infomaniak.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
bridge/bridge.c
ip/ipmroute.c
ip/ipneigh.c
ip/ipntable.c
ip/iproute.c
ip/ipseg6.c
ip/iptunnel.c
ip/iptuntap.c
ip/rtmon.c
misc/nstat.c

index 48b0e7f846f633cee0be84b287320177483ebfc4..f3a4f08ff5f378b145a406fc4aa3b61a3c4a09ca 100644 (file)
@@ -37,10 +37,10 @@ static void usage(void)
        fprintf(stderr,
 "Usage: bridge [ OPTIONS ] OBJECT { COMMAND | help }\n"
 "       bridge [ -force ] -batch filename\n"
-"where OBJECT := { link | fdb | mdb | vlan | monitor }\n"
-"      OPTIONS := { -V[ersion] | -s[tatistics] | -d[etails] |\n"
-"                   -o[neline] | -t[imestamp] | -n[etns] name |\n"
-"                   -c[ompressvlans] -color -p[retty] -j[son] }\n");
+"where  OBJECT := { link | fdb | mdb | vlan | monitor }\n"
+"       OPTIONS := { -V[ersion] | -s[tatistics] | -d[etails] |\n"
+"                    -o[neline] | -t[imestamp] | -n[etns] name |\n"
+"                    -c[ompressvlans] -color -p[retty] -j[son] }\n");
        exit(-1);
 }
 
index 656ea0dc348359311703b5f29e35b15036d88776..981baf2acd946dc622215dd215ff4655fd5734f9 100644 (file)
@@ -37,8 +37,8 @@ static void usage(void)
 {
        fprintf(stderr,
                "Usage: ip mroute show [ [ to ] PREFIX ] [ from PREFIX ] [ iif DEVICE ]\n"
-                             [ table TABLE_ID ]\n"
-       "TABLE_ID := [ local | main | default | all | NUMBER ]\n"
+               "                      [ table TABLE_ID ]\n"
+               "TABLE_ID := [ local | main | default | all | NUMBER ]\n"
 #if 0
        "Usage: ip mroute [ add | del ] DESTINATION from SOURCE [ iif DEVICE ] [ oif DEVICE ]\n"
 #endif
index b778de00b242e29bc473956a966c89b215592da8..4db776d75f757a535e8fad22230afc232fad9dc0 100644 (file)
@@ -50,12 +50,13 @@ static void usage(void)
 {
        fprintf(stderr,
                "Usage: ip neigh { add | del | change | replace }\n"
-               "               { ADDR [ lladdr LLADDR ] [ nud STATE ] proxy ADDR }\n"
-               "               [ dev DEV ] [ router ] [ extern_learn ] [ protocol PROTO ]\n"
+               "                { ADDR [ lladdr LLADDR ] [ nud STATE ] proxy ADDR }\n"
+               "                [ dev DEV ] [ router ] [ extern_learn ] [ protocol PROTO ]\n"
                "\n"
-               "       ip neigh { show | flush } [ proxy ] [ to PREFIX ] [ dev DEV ] [ nud STATE ]\n"
-               "                                 [ vrf NAME ]\n"
-               "       ip neigh get { ADDR | proxy ADDR } dev DEV\n"
+               "       ip neigh { show | flush } [ proxy ] [ to PREFIX ] [ dev DEV ] [ nud STATE ]\n"
+               "                                 [ vrf NAME ]\n"
+               "\n"
+               "       ip neigh get { ADDR | proxy ADDR } dev DEV\n"
                "\n"
                "STATE := { delay | failed | incomplete | noarp | none |\n"
                "           permanent | probe | reachable | stale }\n");
index b5b06a3b06fad31a0967247b45f74f7841fd1117..762c790d10fc26cc3147836006a3e32a2b39bd0e 100644 (file)
@@ -47,15 +47,15 @@ static void usage(void)
 {
        fprintf(stderr,
                "Usage: ip ntable change name NAME [ dev DEV ]\n"
-               "        [ thresh1 VAL ] [ thresh2 VAL ] [ thresh3 VAL ] [ gc_int MSEC ]\n"
-               "        [ PARMS ]\n"
+               "        [ thresh1 VAL ] [ thresh2 VAL ] [ thresh3 VAL ] [ gc_int MSEC ]\n"
+               "        [ PARMS ]\n"
                "Usage: ip ntable show [ dev DEV ] [ name NAME ]\n"
 
                "PARMS := [ base_reachable MSEC ] [ retrans MSEC ] [ gc_stale MSEC ]\n"
-               "        [ delay_probe MSEC ] [ queue LEN ]\n"
-               "        [ app_probes VAL ] [ ucast_probes VAL ] [ mcast_probes VAL ]\n"
-               "        [ anycast_delay MSEC ] [ proxy_delay MSEC ] [ proxy_queue LEN ]\n"
-               "        [ locktime MSEC ]\n"
+               "         [ delay_probe MSEC ] [ queue LEN ]\n"
+               "         [ app_probes VAL ] [ ucast_probes VAL ] [ mcast_probes VAL ]\n"
+               "         [ anycast_delay MSEC ] [ proxy_delay MSEC ] [ proxy_queue LEN ]\n"
+               "         [ locktime MSEC ]\n"
                );
 
        exit(-1);
index 1e5e2002d2edf2faa62360121dde4dcfc9699932..9922cb04433104f207327893fa5ac9cfc28f3d9f 100644 (file)
@@ -82,7 +82,7 @@ static void usage(void)
                "             [ ttl-propagate { enabled | disabled } ]\n"
                "INFO_SPEC := { NH | nhid ID } OPTIONS FLAGS [ nexthop NH ]...\n"
                "NH := [ encap ENCAPTYPE ENCAPHDR ] [ via [ FAMILY ] ADDRESS ]\n"
-               "           [ dev STRING ] [ weight NUMBER ] NHFLAGS\n"
+               "      [ dev STRING ] [ weight NUMBER ] NHFLAGS\n"
                "FAMILY := [ inet | inet6 | mpls | bridge | link ]\n"
                "OPTIONS := FLAGS [ mtu NUMBER ] [ advmss NUMBER ] [ as [ to ] ADDRESS ]\n"
                "           [ rtt TIME ] [ rttvar TIME ] [ reordering NUMBER ]\n"
index 56a76996a6cab8b1fef6d94b7b6945e29a363f90..4f541ae4232c3dbbaa0a809bf04a3675ab0dab6c 100644 (file)
@@ -34,10 +34,10 @@ static void usage(void)
 {
        fprintf(stderr,
                "Usage: ip sr { COMMAND | help }\n"
-               "          ip sr hmac show\n"
-               "          ip sr hmac set KEYID ALGO\n"
-               "          ip sr tunsrc show\n"
-               "          ip sr tunsrc set ADDRESS\n"
+               "          ip sr hmac show\n"
+               "          ip sr hmac set KEYID ALGO\n"
+               "          ip sr tunsrc show\n"
+               "          ip sr tunsrc set ADDRESS\n"
                "where  ALGO := { sha1 | sha256 }\n");
        exit(-1);
 }
index 2369ee062ced36479beeaa403c402bf32662a5b3..7a0e723714ccde0aea7279423256c76b7009309b 100644 (file)
@@ -34,18 +34,18 @@ static void usage(void)
 {
        fprintf(stderr,
                "Usage: ip tunnel { add | change | del | show | prl | 6rd } [ NAME ]\n"
-               "        [ mode { gre | ipip | isatap | sit | vti } ]\n"
-               "        [ remote ADDR ] [ local ADDR ]\n"
-               "        [ [i|o]seq ] [ [i|o]key KEY ] [ [i|o]csum ]\n"
-               "        [ prl-default ADDR ] [ prl-nodefault ADDR ] [ prl-delete ADDR ]\n"
-               "        [ 6rd-prefix ADDR ] [ 6rd-relay_prefix ADDR ] [ 6rd-reset ]\n"
-               "        [ ttl TTL ] [ tos TOS ] [ [no]pmtudisc ] [ dev PHYS_DEV ]\n"
+               "        [ mode { gre | ipip | isatap | sit | vti } ]\n"
+               "        [ remote ADDR ] [ local ADDR ]\n"
+               "        [ [i|o]seq ] [ [i|o]key KEY ] [ [i|o]csum ]\n"
+               "        [ prl-default ADDR ] [ prl-nodefault ADDR ] [ prl-delete ADDR ]\n"
+               "        [ 6rd-prefix ADDR ] [ 6rd-relay_prefix ADDR ] [ 6rd-reset ]\n"
+               "        [ ttl TTL ] [ tos TOS ] [ [no]pmtudisc ] [ dev PHYS_DEV ]\n"
                "\n"
-               "Where: NAME := STRING\n"
-               "       ADDR := { IP_ADDRESS | any }\n"
-               "       TOS  := { STRING | 00..ff | inherit | inherit/STRING | inherit/00..ff }\n"
-               "       TTL  := { 1..255 | inherit }\n"
-               "       KEY  := { DOTTED_QUAD | NUMBER }\n");
+               "Where: NAME := STRING\n"
+               "       ADDR := { IP_ADDRESS | any }\n"
+               "       TOS  := { STRING | 00..ff | inherit | inherit/STRING | inherit/00..ff }\n"
+               "       TTL  := { 1..255 | inherit }\n"
+               "       KEY  := { DOTTED_QUAD | NUMBER }\n");
        exit(-1);
 }
 
index 96ca1ae72d331bc0fbdcde60fdbb8946af9234e6..385d2bd806b2810753523aba10e8a4214843c797 100644 (file)
@@ -42,11 +42,11 @@ static void usage(void)
 {
        fprintf(stderr,
                "Usage: ip tuntap { add | del | show | list | lst | help } [ dev PHYS_DEV ]\n"
-               "       [ mode { tun | tap } ] [ user USER ] [ group GROUP ]\n"
-               "       [ one_queue ] [ pi ] [ vnet_hdr ] [ multi_queue ] [ name NAME ]\n"
+               "       [ mode { tun | tap } ] [ user USER ] [ group GROUP ]\n"
+               "       [ one_queue ] [ pi ] [ vnet_hdr ] [ multi_queue ] [ name NAME ]\n"
                "\n"
-               "Where: USER  := { STRING | NUMBER }\n"
-               "       GROUP := { STRING | NUMBER }\n");
+               "Where: USER  := { STRING | NUMBER }\n"
+               "       GROUP := { STRING | NUMBER }\n");
        exit(-1);
 }
 
index 01c19c80a30a60c20b69b4380c9fc4ebd8ef8d87..b021f773d07154e32e6c54e7867d8af56fe831d1 100644 (file)
@@ -65,7 +65,7 @@ static void usage(void)
        fprintf(stderr,
                "Usage: rtmon [ OPTIONS ] file FILE [ all | LISTofOBJECTS ]\n"
                "OPTIONS := { -f[amily] { inet | inet6 | link | help } |\n"
-               "            -4 | -6 | -0 | -V[ersion] }\n"
+               "             -4 | -6 | -0 | -V[ersion] }\n"
                "LISTofOBJECTS := [ link ] [ address ] [ route ]\n");
        exit(-1);
 }
index ecdd4ce8266db0aa3825f2bd39986bc186ff846e..7160c59be2229624bc313b9c8e27549d0845a2d0 100644 (file)
@@ -547,17 +547,17 @@ static void usage(void)
 {
        fprintf(stderr,
                "Usage: nstat [OPTION] [ PATTERN [ PATTERN ] ]\n"
-               "   -h, --help          this message\n"
-               "   -a, --ignore        ignore history\n"
-               "   -d, --scan=SECS     sample every statistics every SECS\n"
-               "   -j, --json          format output in JSON\n"
-               "   -n, --nooutput      do history only\n"
-               "   -p, --pretty        pretty print\n"
-               "   -r, --reset         reset history\n"
-               "   -s, --noupdate      don't update history\n"
-               "   -t, --interval=SECS report average over the last SECS\n"
-               "   -V, --version       output version information\n"
-               "   -z, --zeros         show entries with zero activity\n");
+               "   -h, --help          this message\n"
+               "   -a, --ignore        ignore history\n"
+               "   -d, --scan=SECS     sample every statistics every SECS\n"
+               "   -j, --json          format output in JSON\n"
+               "   -n, --nooutput      do history only\n"
+               "   -p, --pretty        pretty print\n"
+               "   -r, --reset         reset history\n"
+               "   -s, --noupdate      don't update history\n"
+               "   -t, --interval=SECS report average over the last SECS\n"
+               "   -V, --version       output version information\n"
+               "   -z, --zeros         show entries with zero activity\n");
        exit(-1);
 }