Closed rudimeier closed 8 years ago
Fixed in 982c082f
The second problem should be easy to do afterwards:
yuck_parse(foo, argc, argv);
if (foo->nargs) {
fputs("Error: extra operands\n", stderr);
exit(1);
}
Like getopt or argp, yuck is a syntax parser and leaves the semantic parsing up to the user.
I think this line
should give you an error like getopt would print:
Also would be nice to be able to create commands without any non-option arguments which automatically exit on error, like