diff options
| author | Jose Luis Duran <jlduran@gmail.com> | 2022-11-01 05:19:22 +0000 |
|---|---|---|
| committer | Mark Johnston <markj@FreeBSD.org> | 2022-11-03 14:39:32 +0000 |
| commit | 526e8a7d5db390d1cbf490d8e1e0b41e057d81bf (patch) | |
| tree | ad73874222c1046a01cd0b307f88fb904edae09a | |
| parent | 0657b2325df3d85967870a928d58b24ffcf3f1ea (diff) | |
ping: main.c: Consistent use of white space/tabs
If a user has tabs set at a value other than 8, the output of the usage
may not be consistently aligned.
% tabs -2
Before:
% ping
usage:
ping [-4AaDdfHnoQqRrv] [-C pcp] [-c count] [-G sweepmaxsize]
[-g sweepminsize] [-h sweepincrsize] [-i wait] [-l preload]
[-M mask | time] [-m ttl] [-P policy] [-p pattern] [-S src_addr]
[-s packetsize] [-t timeout] [-W waittime] [-z tos] IPv4-host
ping [-4AaDdfHLnoQqRrv] [-C pcp] [-c count] [-I iface] [-i wait]
[-l preload] [-M mask | time] [-m ttl] [-P policy] [-p pattern]
[-S src_addr] [-s packetsize] [-T ttl] [-t timeout] [-W waittime]
[-z tos] IPv4-mcast-group
ping [-6AaDdfHnNoOquvyY] [-b bufsiz] [-c count] [-e gateway]
[-I interface] [-i wait] [-k addrtype] [-l preload] [-m hoplimit]
[-p pattern] [-P policy] [-S sourceaddr] [-s packetsize] [-t timeout]
[-W waittime] [-z tclass] [IPv6-hops ...] IPv6-host
After:
% ping
usage:
ping [-4AaDdfHnoQqRrv] [-C pcp] [-c count] [-G sweepmaxsize]
[-g sweepminsize] [-h sweepincrsize] [-i wait] [-l preload]
[-M mask | time] [-m ttl] [-P policy] [-p pattern] [-S src_addr]
[-s packetsize] [-t timeout] [-W waittime] [-z tos] IPv4-host
ping [-4AaDdfHLnoQqRrv] [-C pcp] [-c count] [-I iface] [-i wait]
[-l preload] [-M mask | time] [-m ttl] [-P policy] [-p pattern]
[-S src_addr] [-s packetsize] [-T ttl] [-t timeout] [-W waittime]
[-z tos] IPv4-mcast-group
ping [-6AaDdfHnNoOquvyY] [-b bufsiz] [-c count] [-e gateway]
[-I interface] [-i wait] [-k addrtype] [-l preload] [-m hoplimit]
[-p pattern] [-P policy] [-S sourceaddr] [-s packetsize] [-t timeout]
[-W waittime] [-z tclass] [IPv6-hops ...] IPv6-host
Reviewed by: markj
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D37246
| -rw-r--r-- | sbin/ping/main.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/sbin/ping/main.c b/sbin/ping/main.c index 11fa17b5ce2d..fce58e05bd2f 100644 --- a/sbin/ping/main.c +++ b/sbin/ping/main.c @@ -180,48 +180,48 @@ usage(void) #ifdef INET "\tping [-4AaDdfHnoQqRrv] [-C pcp] [-c count] " "[-G sweepmaxsize]\n" - " [-g sweepminsize] [-h sweepincrsize] [-i wait] " + "\t [-g sweepminsize] [-h sweepincrsize] [-i wait] " "[-l preload]\n" - " [-M mask | time] [-m ttl] " + "\t [-M mask | time] [-m ttl] " #ifdef IPSEC "[-P policy] " #endif "[-p pattern] [-S src_addr] \n" - " [-s packetsize] [-t timeout] [-W waittime] [-z tos] " + "\t [-s packetsize] [-t timeout] [-W waittime] [-z tos] " "IPv4-host\n" "\tping [-4AaDdfHLnoQqRrv] [-C pcp] [-c count] [-I iface] " "[-i wait]\n" - " [-l preload] [-M mask | time] [-m ttl] " + "\t [-l preload] [-M mask | time] [-m ttl] " #ifdef IPSEC "[-P policy] " #endif "[-p pattern]\n" - " [-S src_addr] [-s packetsize] [-T ttl] [-t timeout] [-W waittime]\n" - " [-z tos] IPv4-mcast-group\n" + "\t [-S src_addr] [-s packetsize] [-T ttl] [-t timeout] [-W waittime]\n" + "\t [-z tos] IPv4-mcast-group\n" #endif /* INET */ #ifdef INET6 - "\tping [-6AaDd" + "\tping [-6AaDd" #if defined(IPSEC) && !defined(IPSEC_POLICY_IPSEC) - "E" + "E" #endif - "fHnNoOq" + "fHnNoOq" #ifdef IPV6_USE_MIN_MTU - "u" + "u" #endif - "vyY" + "vyY" #if defined(IPSEC) && !defined(IPSEC_POLICY_IPSEC) - "Z" + "Z" #endif "] " - "[-b bufsiz] [-c count] [-e gateway]\n" - " [-I interface] [-i wait] [-k addrtype] [-l preload] " - "[-m hoplimit]\n" - " [-p pattern]" + "[-b bufsiz] [-c count] [-e gateway]\n" + "\t [-I interface] [-i wait] [-k addrtype] [-l preload] " + "[-m hoplimit]\n" + "\t [-p pattern]" #if defined(IPSEC) && defined(IPSEC_POLICY_IPSEC) - " [-P policy]" + " [-P policy]" #endif - " [-S sourceaddr] [-s packetsize] [-t timeout]\n" - " [-W waittime] [-z tclass] [IPv6-hops ...] IPv6-host\n" + " [-S sourceaddr] [-s packetsize] [-t timeout]\n" + "\t [-W waittime] [-z tclass] [IPv6-hops ...] IPv6-host\n" #endif /* INET6 */ ); |
