diff options
author | June McEnroe <june@causal.agency> | 2020-02-05 22:51:45 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-02-05 22:51:45 -0500 |
commit | 839cc362a85e3cf463cd0cfe6c092ca0978b8c29 (patch) | |
tree | 226ad19c23b68f1afbb27f5f2ed431235f1175a5 | |
parent | Use getopt_config to load options (diff) | |
download | catgirl-839cc362a85e3cf463cd0cfe6c092ca0978b8c29.tar.gz catgirl-839cc362a85e3cf463cd0cfe6c092ca0978b8c29.zip |
Handle errors from getopt
Diffstat (limited to '')
-rw-r--r-- | chat.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chat.c b/chat.c index c67d8a9..115fe38 100644 --- a/chat.c +++ b/chat.c @@ -97,6 +97,7 @@ int main(int argc, char *argv[]) { break; case 'u': user = optarg; break; case 'v': self.debug = true; break; case 'w': pass = optarg; + break; default: return EX_USAGE; } } if (!host) errx(EX_USAGE, "host required"); |