Fix long option crap.
authorDavid Griffith <dave@661.org>
Wed, 22 Feb 2017 12:33:25 +0000 (04:33 -0800)
committerDavid Griffith <dave@661.org>
Wed, 22 Feb 2017 12:33:25 +0000 (04:33 -0800)
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.

src/curses/ux_init.c

index a998e5607ea20a22f26bdc77ae58b4f3bcf73f8e..762bb4f06189c6a03f4effb189b7a83299d603d2 100644 (file)
@@ -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;