summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-06-17 02:50:06 +0000
committerMiles Bader <miles@gnu.org>1996-06-17 02:50:06 +0000
commitbe5c0a1f1f002df03c1f4fa129edae26a8a12115 (patch)
tree99eaa4ebb0b556a8b61f0d8dca6fc5f10c1ec3d7
parent2df5435832a53784eaa46360eb5bd59e429bf166 (diff)
(parse_opt): Use argp_failure.
-rw-r--r--libstore/argp.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libstore/argp.c b/libstore/argp.c
index bac7e10a..86b7eae2 100644
--- a/libstore/argp.c
+++ b/libstore/argp.c
@@ -139,12 +139,7 @@ parse_opt (int opt, char *arg, struct argp_state *state)
err = open_file (arg, h, &s);
if (err)
{
- /* Use error instead of ERR because it's not a parsing error. */
- if (! (state->flags & ARGP_NO_ERRS))
- {
- int exit_status = (state->flags & ARGP_NO_EXIT) ? 0 : 1;
- error (exit_status, err, "%s", arg);
- }
+ argp_failure (state, 1, err, "%s", arg);
return err;
}
else