From: Mark Wooding Date: Thu, 4 Jun 2020 20:18:59 +0000 (+0100) Subject: disobedience/disobedience.c: Stop telling `getopt' to accept `-H' and `-C'. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/commitdiff_plain/5048e538c905f3940be2f680ad25ba13c8a6acc7?ds=sidebyside disobedience/disobedience.c: Stop telling `getopt' to accept `-H' and `-C'. The option parser refuses them later, but you get a less helpful error message. --- diff --git a/disobedience/disobedience.c b/disobedience/disobedience.c index b988aa8..6706a2d 100644 --- a/disobedience/disobedience.c +++ b/disobedience/disobedience.c @@ -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");