1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

* options.h, g10.c (main): Add --strict and --no-strict to switch the

log_warning severity level from info to error.
This commit is contained in:
David Shaw 2002-10-03 22:13:04 +00:00
parent 35cc8cf90a
commit 8c48fbd0e2
3 changed files with 10 additions and 0 deletions

View file

@ -300,6 +300,8 @@ enum cmd_and_opt_values { aNull = 0,
oLCctype,
oLCmessages,
oGroup,
oStrict,
oNoStrict,
aTest };
@ -588,6 +590,8 @@ static ARGPARSE_OPTS opts[] = {
{ oLCctype, "lc-ctype", 2, "@" },
{ oLCmessages, "lc-messages", 2, "@" },
{ oGroup, "group", 2, "@" },
{ oStrict, "strict", 0, "@" },
{ oNoStrict, "no-strict", 0, "@" },
{0} };
@ -1693,6 +1697,8 @@ main( int argc, char **argv )
case oLCctype: opt.lc_ctype = pargs.r.ret_str; break;
case oLCmessages: opt.lc_messages = pargs.r.ret_str; break;
case oGroup: add_group(pargs.r.ret_str); break;
case oStrict: opt.strict=1; log_set_strict(1); break;
case oNoStrict: opt.strict=0; log_set_strict(0); break;
default : pargs.err = configfp? 1:2; break;
}
}