aboutsummaryrefslogtreecommitdiffstats
path: root/g10/g10.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/g10.c')
-rw-r--r--g10/g10.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/g10/g10.c b/g10/g10.c
index d2c010db3..47f07325c 100644
--- a/g10/g10.c
+++ b/g10/g10.c
@@ -247,6 +247,7 @@ enum cmd_and_opt_values { aNull = 0,
oAutoKeyRetrieve,
oNoAutoKeyRetrieve,
oUseAgent,
+ oGpgAgentInfo,
oMergeOnly,
oTryAllSecrets,
oTrustedKey,
@@ -358,6 +359,7 @@ static ARGPARSE_OPTS opts[] = {
{ oDryRun, "dry-run", 0, N_("do not make any changes") },
/*{ oInteractive, "interactive", 0, N_("prompt before overwriting") }, */
{ oUseAgent, "use-agent",0, N_("use the gpg-agent")},
+ { oGpgAgentInfo, "gpg-agent-info",2, "@"},
{ oBatch, "batch", 0, N_("batch mode: never ask")},
{ oAnswerYes, "yes", 0, N_("assume yes on most questions")},
{ oAnswerNo, "no", 0, N_("assume no on most questions")},
@@ -952,6 +954,7 @@ main( int argc, char **argv )
not_implemented("use-agent");
#endif /* __riscos__ */
break;
+ case oGpgAgentInfo: opt.gpg_agent_info = pargs.r.ret_str; break;
case oAnswerYes: opt.answer_yes = 1; break;
case oAnswerNo: opt.answer_no = 1; break;
case oKeyring: append_to_strlist( &nrings, pargs.r.ret_str); break;