projects
/
graphviz
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
527c5da
)
Fix ccomps -? to actually print usage instead of error on macOS
author
Magnus Jacobsson
<Magnus.Jacobsson@berotec.se>
Tue, 20 Oct 2020 06:11:33 +0000
(08:11 +0200)
committer
Magnus Jacobsson
<magnus.jacobsson@berotec.se>
Sat, 24 Oct 2020 05:46:23 +0000
(07:46 +0200)
Towards https://gitlab.com/graphviz/graphviz/-/issues/1852
cmd/tools/ccomps.c
patch
|
blob
|
history
diff --git
a/cmd/tools/ccomps.c
b/cmd/tools/ccomps.c
index 68f638997a0079f6d91204966a08e3291f3892aa..270df8d39079459928a4febe69be71ffafed3fbe 100644
(file)
--- a/
cmd/tools/ccomps.c
+++ b/
cmd/tools/ccomps.c
@@
-205,7
+205,7
@@
static void init(int argc, char *argv[])
"ccomps: option -%c missing argument - ignored\n", optopt);
break;
case '?':
- if (optopt == '\0')
+ if (optopt == '\0'
|| optopt == '?'
)
usage(0);
else {
fprintf(stderr,