1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

signal: show usage info

This commit is contained in:
Steffen Vogel 2017-09-04 18:03:05 +02:00
parent ec710f8a17
commit 2d05c0853a
2 changed files with 5 additions and 3 deletions

View file

@ -149,7 +149,7 @@ int signal_parse_cli(struct node *n, int argc, char *argv[])
continue;
check: if (optarg == endptr)
error("Failed to parse parse option argument '-%c %s'", c, optarg);
warn("Failed to parse parse option argument '-%c %s'", c, optarg);
}
if (argc != optind + 1)

View file

@ -145,8 +145,10 @@ int main(int argc, char *argv[])
error("Failed to open output");
ret = node_parse_cli(&n, argc, argv);
if (ret)
error("Failed to parse command line options");
if (ret) {
usage();
exit(EXIT_FAILURE);
}
ret = node_check(&n);
if (ret)