Commit f872966c authored by Rusty Russell's avatar Rusty Russell

tools/configurator: Better argument handling, particularly unknown arguments.

Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 1239aa28
......@@ -752,6 +752,10 @@ int main(int argc, const char *argv[])
headerfile = argv[1] + 14;
argc--;
argv++;
} else if (strcmp(argv[1], "--") == 0) {
break;
} else if (argv[1][0] == '-') {
c12r_errx(2, "Unknown option %s", argv[1]);
} else {
break;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment