aboutsummaryrefslogtreecommitdiff
path: root/src/xz/args.c
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2009-05-22 14:43:00 +0300
committerLasse Collin <lasse.collin@tukaani.org>2009-05-22 14:43:00 +0300
commitb60376249e0c586910c4121fab4f791820cc1289 (patch)
treea05903c27ddb37000c1eafe453189acf13eb4153 /src/xz/args.c
parentFix a comment. (diff)
downloadxz-b60376249e0c586910c4121fab4f791820cc1289.tar.xz
Add --no-warn.
Diffstat (limited to 'src/xz/args.c')
-rw-r--r--src/xz/args.c8
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;