projects
/
graphviz
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31c4b42
)
Show usage and exit non-zero for unsupported option in smyrna
author
Magnus Jacobsson
<magnus.jacobsson@berotec.se>
Sat, 3 Oct 2020 14:03:13 +0000
(16:03 +0200)
committer
Magnus Jacobsson
<magnus.jacobsson@berotec.se>
Thu, 8 Oct 2020 19:10:25 +0000
(21:10 +0200)
Towards https://gitlab.com/graphviz/graphviz/-/issues/1843.
cmd/smyrna/main.c
patch
|
blob
|
history
diff --git
a/cmd/smyrna/main.c
b/cmd/smyrna/main.c
index 13d952887af8665524d9802a8d364b7d965b1047..1a34b0f52e63be9242c534462b386312668209c3 100644
(file)
--- a/
cmd/smyrna/main.c
+++ b/
cmd/smyrna/main.c
@@
-136,10
+136,12
@@
static char *parseArgs(int argc, char *argv[], ViewInfo * view)
case '?':
if (optopt == '\0')
usage(0);
- else
+ else
{
fprintf(stderr,
- "smyrna: option -%c unrecognized
- ignored
\n",
+ "smyrna: option -%c unrecognized\n",
optopt);
+ usage(1);
+ }
break;
}
}