disobedience/disobedience.c: Stop telling `getopt' to accept `-H' and `-C'.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 4 Jun 2020 20:18:59 +0000 (21:18 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 15 Jun 2020 12:02:44 +0000 (13:02 +0100)
The option parser refuses them later, but you get a less helpful error
message.

disobedience/disobedience.c

index b988aa8..6706a2d 100644 (file)
@@ -546,7 +546,7 @@ int main(int argc, char **argv) {
   regexp_setup();
   if(!setlocale(LC_CTYPE, "")) disorder_fatal(errno, "error calling setlocale");
   gtkok = gtk_init_check(&argc, &argv);
-  while((n = getopt_long(argc, argv, "hVc:dtHC", options, 0)) >= 0) {
+  while((n = getopt_long(argc, argv, "hVc:dt", options, 0)) >= 0) {
     switch(n) {
     case 'h': help();
     case 'V': version("disobedience");