mirror of
git://git.gnupg.org/gnupg.git
synced 2025-05-14 08:13:25 +02:00
gpgconf: Add option --homedir
* tools/gpgconf.c (opts): Add --homedir. (main): Set homedir. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
173fa97102
commit
def512eb67
@ -87,6 +87,7 @@ static ARGPARSE_OPTS opts[] =
|
|||||||
{ oDryRun, "dry-run", 0, N_("do not make any changes") },
|
{ oDryRun, "dry-run", 0, N_("do not make any changes") },
|
||||||
{ oRuntime, "runtime", 0, N_("activate changes at runtime, if possible") },
|
{ oRuntime, "runtime", 0, N_("activate changes at runtime, if possible") },
|
||||||
/* hidden options */
|
/* hidden options */
|
||||||
|
{ oHomedir, "homedir", 2, "@" },
|
||||||
{ oNoVerbose, "no-verbose", 0, "@"},
|
{ oNoVerbose, "no-verbose", 0, "@"},
|
||||||
{0}
|
{0}
|
||||||
};
|
};
|
||||||
@ -176,6 +177,7 @@ main (int argc, char **argv)
|
|||||||
break;
|
break;
|
||||||
case oVerbose: opt.verbose++; break;
|
case oVerbose: opt.verbose++; break;
|
||||||
case oNoVerbose: opt.verbose = 0; break;
|
case oNoVerbose: opt.verbose = 0; break;
|
||||||
|
case oHomedir: gnupg_set_homedir (pargs.r.ret_str); break;
|
||||||
|
|
||||||
case aListDirs:
|
case aListDirs:
|
||||||
case aListComponents:
|
case aListComponents:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user