aboutsummaryrefslogtreecommitdiffstats
path: root/g10/g10.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2005-07-22 16:28:40 +0000
committerWerner Koch <[email protected]>2005-07-22 16:28:40 +0000
commita486501c0b848b3de9bc355135f1ffec953e057f (patch)
treee5525626969c81afd367e72502f2830a229c3a97 /g10/g10.c
parent* options.h, g10.c (main), keyedit.c (keyedit_menu): Use --interactive (diff)
downloadgnupg-a486501c0b848b3de9bc355135f1ffec953e057f.tar.gz
gnupg-a486501c0b848b3de9bc355135f1ffec953e057f.zip
* gpg.sgml (http):
* g10.c, options.h: New option --exit-on-status-write-error. * status.c (write_status_text): Make use of this option.
Diffstat (limited to '')
-rw-r--r--g10/g10.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/g10/g10.c b/g10/g10.c
index ac36ded3d..eea79da4c 100644
--- a/g10/g10.c
+++ b/g10/g10.c
@@ -346,6 +346,7 @@ enum cmd_and_opt_values
oEnableProgressFilter,
oMultifile,
oKeyidFormat,
+ oExitOnStatusWriteError,
oLimitCardInsertTries,
oReaderPort,
@@ -676,6 +677,7 @@ static ARGPARSE_OPTS opts[] = {
{ oEnableProgressFilter, "enable-progress-filter", 0, "@" },
{ oMultifile, "multifile", 0, "@" },
{ oKeyidFormat, "keyid-format", 2, "@" },
+ { oExitOnStatusWriteError, "exit-on-status-write-error", 0, "@" },
{ oLimitCardInsertTries, "limit-card-insert-tries", 1, "@"},
{ oReaderPort, "reader-port", 2, "@"},
@@ -2543,6 +2545,11 @@ main (int argc, char **argv )
else
log_error("unknown keyid-format `%s'\n",pargs.r.ret_str);
break;
+
+ case oExitOnStatusWriteError:
+ opt.exit_on_status_write_error = 1;
+ break;
+
case oLimitCardInsertTries:
opt.limit_card_insert_tries = pargs.r.ret_int;
break;