Menu

Commit [aebd88]  Maximize  Restore  History

standardize --help/usage handling

When displaying usage output in response to the user requesting it
(e.g. using -h/--help), make sure we write the output to stdout and
we exit(0). When displaying output in response to an error (e.g.
an invalid option or argument), make sure we write the output to
stdout and exit non-zero. This brings us in line with standard
utilities out there.

URL: https://bugs.gentoo.org/655942
Signed-off-by: Mike Frysinger <vapier@...>

Mike Frysinger Mike Frysinger 2018-06-26

changed arp.c
changed hostname.c
changed ifconfig.c
changed include/util-ank.h
changed ipmaddr.c
changed iptunnel.c
changed lib/inet6_sr.c
changed lib/inet_sr.c
changed lib/x25_sr.c
changed nameif.c
changed netstat.c
changed plipconfig.c
changed rarp.c
changed route.c
changed slattach.c
arp.c Diff Switch to side-by-side view
Loading...
hostname.c Diff Switch to side-by-side view
Loading...
ifconfig.c Diff Switch to side-by-side view
Loading...
include/util-ank.h Diff Switch to side-by-side view
Loading...
ipmaddr.c Diff Switch to side-by-side view
Loading...
iptunnel.c Diff Switch to side-by-side view
Loading...
lib/inet6_sr.c Diff Switch to side-by-side view
Loading...
lib/inet_sr.c Diff Switch to side-by-side view
Loading...
lib/x25_sr.c Diff Switch to side-by-side view
Loading...
nameif.c Diff Switch to side-by-side view
Loading...
netstat.c Diff Switch to side-by-side view
Loading...
plipconfig.c Diff Switch to side-by-side view
Loading...
rarp.c Diff Switch to side-by-side view
Loading...
route.c Diff Switch to side-by-side view
Loading...
slattach.c Diff Switch to side-by-side view
Loading...