]> git.proxmox.com Git - mirror_iproute2.git/commit - misc/ss.c
ss: return -1 if an unrecognized option was given
authorPhil Sutter <phil@nwl.cc>
Thu, 15 Oct 2015 19:01:16 +0000 (21:01 +0200)
committerStephen Hemminger <shemming@brocade.com>
Mon, 19 Oct 2015 04:56:55 +0000 (21:56 -0700)
commitf73105ab42795422f131fb711712e3c860df982f
treee08783a2bbc91a27a55cdc0c31bc169c19087fad
parent6f07f3dc41545657c0364eb17850b946f41861bf
ss: return -1 if an unrecognized option was given

When getopt_long encounters an option which has not been registered, it
returns '?'. React upon that and call usage() instead of help() so ss
returns with a non-zero exit status.

Signed-off-by: Phil Sutter <phil@nwl.cc>
misc/ss.c