aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-09-23 16:24:03 +0200
committerThomas White <taw@physics.org>2019-09-23 16:24:03 +0200
commit6e0da0f1f85b9758c5916eb5d446df0519381554 (patch)
tree1f8470af3ce40aef03d3bf1100589981f1882632
parentf300428f9c04ea306eecd9093b2c2e85b5b37b3a (diff)
indexamajig: Stop program on option parsing error
-rw-r--r--src/indexamajig.c2
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 ) {