Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ping: main.c: Consistent use of white space/tabs #623

Closed
wants to merge 1 commit into from

Conversation

jlduran
Copy link
Contributor

@jlduran jlduran commented Nov 3, 2022

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

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
@markjdb markjdb closed this Nov 3, 2022
@jlduran jlduran deleted the D37246 branch November 3, 2022 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants