summaryrefslogtreecommitdiff
path: root/mkfs/options.c
diff options
context:
space:
mode:
Diffstat (limited to 'mkfs/options.c')
-rw-r--r--mkfs/options.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mkfs/options.c b/mkfs/options.c
index 14c648d..36539b7 100644
--- a/mkfs/options.c
+++ b/mkfs/options.c
@@ -308,6 +308,11 @@ void process_command_line(options_t *opt, int argc, char **argv)
}
}
+ if (opt->comp_extra != NULL && strcmp(opt->comp_extra, "help") == 0) {
+ compressor_print_help(opt->compressor);
+ exit(EXIT_SUCCESS);
+ }
+
if ((optind + 1) >= argc) {
fputs("Missing arguments: input and output files.\n", stderr);
goto fail_arg;