diff options
Diffstat (limited to 'src/xz/args.c')
-rw-r--r-- | src/xz/args.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/xz/args.c b/src/xz/args.c index 32ab7785..1ee9a232 100644 --- a/src/xz/args.c +++ b/src/xz/args.c @@ -46,7 +46,8 @@ parse_real(args_info *args, int argc, char **argv) OPT_FILES0, }; - static const char short_opts[] = "cC:defF:hHlkM:qrS:tT:vVz0123456789"; + static const char short_opts[] + = "cC:defF:hHlkM:qQrS:tT:vVz0123456789"; static const struct option long_opts[] = { // Operation mode @@ -94,6 +95,7 @@ parse_real(args_info *args, int argc, char **argv) // Other options { "quiet", no_argument, NULL, 'q' }, { "verbose", no_argument, NULL, 'v' }, + { "no-warn", no_argument, NULL, 'Q' }, { "help", no_argument, NULL, 'h' }, { "long-help", no_argument, NULL, 'H' }, { "version", no_argument, NULL, 'V' }, @@ -195,6 +197,10 @@ parse_real(args_info *args, int argc, char **argv) message_verbosity_decrease(); break; + case 'Q': + set_exit_no_warn(); + break; + case 't': opt_mode = MODE_TEST; break; |