summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-02-05 22:51:45 -0500
committerJune McEnroe <june@causal.agency>2020-02-05 22:51:45 -0500
commit839cc362a85e3cf463cd0cfe6c092ca0978b8c29 (patch)
tree226ad19c23b68f1afbb27f5f2ed431235f1175a5
parentUse getopt_config to load options (diff)
downloadcatgirl-839cc362a85e3cf463cd0cfe6c092ca0978b8c29.tar.gz
catgirl-839cc362a85e3cf463cd0cfe6c092ca0978b8c29.zip
Handle errors from getopt
-rw-r--r--chat.c1
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");
='/src/commit/bin/gfxx.c?id=b79845f529fbe37c37fe15de75d3411931621b32&follow=1'>Add flip option to gfxxJune McEnroe 2018-02-05Remove gfxx reverse optionJune McEnroe 2018-02-04Fix gfxx draw stop conditionJune McEnroe 2018-02-04Reuse CGColorSpace and CGDataProvider in gfcocoaJune McEnroe 2018-02-04Mark mac target phonyJune McEnroe 2018-02-04Set up Makefile for gfxx-cocoa or gfxx-fbJune McEnroe 2018-02-04Avoid doing excessive work in gfxxJune McEnroe 2018-02-04Handle window resizing in gfcocoaJune McEnroe 2018-02-04Set cinoptionsJune McEnroe 2018-02-04Tweak colorscheme moreJune McEnroe 2018-02-04Color MatchParen DarkYellowJune McEnroe 2018-02-04Add palette sampling to gfxxJune McEnroe 2018-02-04Add 4-bit RGB to gfxxJune McEnroe 2018-02-04Add Quit menu item to gfcocoaJune McEnroe 2018-02-04Switch back to sane Objective-C styleJune McEnroe 2018-02-04Quit gfcocoa when window closesJune McEnroe 2018-02-03Apparently this is how people write Objective-CJune McEnroe