Commit 6e0da0f1 authored by Thomas White's avatar Thomas White
Browse files

indexamajig: Stop program on option parsing error

parent f300428f
......@@ -818,7 +818,7 @@ int main(int argc, char *argv[])
static struct argp argp = { options, parse_arg, NULL, doc,
argp_children, NULL, NULL };
argp_parse(&argp, argc, argv, 0, NULL, &args);
if ( argp_parse(&argp, argc, argv, 0, NULL, &args) ) return 1;
/* Check for minimal information */
if ( args.filename == NULL ) {
......
Supports Markdown
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