~mdw
/
disorder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd1d988
)
disobedience/disobedience.c: Stop telling `getopt' to accept `-H' and `-C'.
author
Mark Wooding
<mdw@distorted.org.uk>
Thu, 4 Jun 2020 20:18:59 +0000
(21:18 +0100)
committer
Mark 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
patch
|
blob
|
blame
|
history
diff --git
a/disobedience/disobedience.c
b/disobedience/disobedience.c
index
b988aa8
..
6706a2d
100644
(file)
--- 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:dt
HC
", options, 0)) >= 0) {
+ while((n = getopt_long(argc, argv, "hVc:dt", options, 0)) >= 0) {
switch(n) {
case 'h': help();
case 'V': version("disobedience");