summaryrefslogtreecommitdiff
path: root/tarfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'tarfs.c')
-rw-r--r--tarfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tarfs.c b/tarfs.c
index 8ff1060f5..4a082643d 100644
--- a/tarfs.c
+++ b/tarfs.c
@@ -211,7 +211,7 @@ tarfs_parse_opts (int key, char *arg, struct argp_state *sate)
case ARGP_KEY_ARG:
tarfs_options.file_name = strdup (arg);
if (!tarfs_options.file_name || !strlen (tarfs_options.file_name))
- error (1, 1, "No archive specified.");
+ argp_error (sate, "No archive specified.");
}
return 0;