diff options
author | Thomas White <taw@physics.org> | 2019-09-23 16:24:03 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2019-09-23 16:24:03 +0200 |
commit | 6e0da0f1f85b9758c5916eb5d446df0519381554 (patch) | |
tree | 1f8470af3ce40aef03d3bf1100589981f1882632 /src | |
parent | f300428f9c04ea306eecd9093b2c2e85b5b37b3a (diff) |
indexamajig: Stop program on option parsing error
Diffstat (limited to 'src')
-rw-r--r-- | src/indexamajig.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c index 9a1e6e81..7861cffe 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -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 ) { |