From: David Griffith Date: Wed, 22 Feb 2017 12:33:25 +0000 (-0800) Subject: Fix long option crap. X-Git-Url: https://scope-eye.net/git/?a=commitdiff_plain;h=d2f29032683c03cbea9367cbb34b321792ba49f4;p=liskon_frotz.git Fix long option crap. The zgetopt() function will throw an error if you attempt to use a long option flag like --this. So I'm including "-" in the third parameter to zgetopt() to cause long option flags to be ignored. --- diff --git a/src/curses/ux_init.c b/src/curses/ux_init.c index a998e56..762bb4f 100644 --- a/src/curses/ux_init.c +++ b/src/curses/ux_init.c @@ -245,7 +245,7 @@ void os_process_arguments (int argc, char *argv[]) /* Parse the options */ do { - c = zgetopt(argc, argv, "aAb:c:def:Fh:il:oOpPqrR:s:S:tu:vw:xZ:"); + c = zgetopt(argc, argv, "-aAb:c:def:Fh:il:oOpPqrR:s:S:tu:vw:xZ:"); switch(c) { case 'a': f_setup.attribute_assignment = 1; break; case 'A': f_setup.attribute_testing = 1; break;