mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-20 14:37:08 +01:00
kbxd: Group the options.
* kbx/keyboxd.h (opt): Remove unused field 'batch'. * kbx/keyboxd.c (opts): Remove --batch. Add group descriptions.
This commit is contained in:
parent
e03ddb66c7
commit
ed82ef9145
@ -86,7 +86,6 @@ enum cmd_and_opt_values
|
|||||||
oLogFile,
|
oLogFile,
|
||||||
oServer,
|
oServer,
|
||||||
oDaemon,
|
oDaemon,
|
||||||
oBatch,
|
|
||||||
oFakedSystemTime,
|
oFakedSystemTime,
|
||||||
oListenBacklog,
|
oListenBacklog,
|
||||||
oDisableCheckOwnSocket,
|
oDisableCheckOwnSocket,
|
||||||
@ -99,26 +98,28 @@ static gpgrt_opt_t opts[] = {
|
|||||||
ARGPARSE_c (aGPGConfList, "gpgconf-list", "@"),
|
ARGPARSE_c (aGPGConfList, "gpgconf-list", "@"),
|
||||||
ARGPARSE_c (aGPGConfTest, "gpgconf-test", "@"),
|
ARGPARSE_c (aGPGConfTest, "gpgconf-test", "@"),
|
||||||
|
|
||||||
ARGPARSE_group (301, N_("@Options:\n ")),
|
ARGPARSE_header (NULL, N_("Options used for startup")),
|
||||||
|
|
||||||
ARGPARSE_s_n (oDaemon, "daemon", N_("run in daemon mode (background)")),
|
ARGPARSE_s_n (oDaemon, "daemon", N_("run in daemon mode (background)")),
|
||||||
ARGPARSE_s_n (oServer, "server", N_("run in server mode (foreground)")),
|
ARGPARSE_s_n (oServer, "server", N_("run in server mode (foreground)")),
|
||||||
ARGPARSE_s_n (oVerbose, "verbose", N_("verbose")),
|
ARGPARSE_s_n (oNoDetach, "no-detach", N_("do not detach from the console")),
|
||||||
ARGPARSE_s_n (oQuiet, "quiet", N_("be somewhat more quiet")),
|
ARGPARSE_s_s (oHomedir, "homedir", "@"),
|
||||||
ARGPARSE_conffile (oOptions, "options", N_("|FILE|read options from FILE")),
|
ARGPARSE_conffile (oOptions, "options", N_("|FILE|read options from FILE")),
|
||||||
|
|
||||||
|
ARGPARSE_header ("Monitor", N_("Options controlling the diagnostic output")),
|
||||||
|
|
||||||
|
ARGPARSE_s_n (oVerbose, "verbose", N_("verbose")),
|
||||||
|
ARGPARSE_s_n (oQuiet, "quiet", N_("be somewhat more quiet")),
|
||||||
ARGPARSE_s_s (oDebug, "debug", "@"),
|
ARGPARSE_s_s (oDebug, "debug", "@"),
|
||||||
ARGPARSE_s_n (oDebugAll, "debug-all", "@"),
|
ARGPARSE_s_n (oDebugAll, "debug-all", "@"),
|
||||||
ARGPARSE_s_i (oDebugWait, "debug-wait", "@"),
|
ARGPARSE_s_i (oDebugWait, "debug-wait", "@"),
|
||||||
|
ARGPARSE_s_s (oLogFile, "log-file", N_("use a log file for the server")),
|
||||||
|
|
||||||
|
ARGPARSE_header ("Configuration",
|
||||||
|
N_("Options controlling the configuration")),
|
||||||
|
|
||||||
ARGPARSE_s_n (oDisableCheckOwnSocket, "disable-check-own-socket", "@"),
|
ARGPARSE_s_n (oDisableCheckOwnSocket, "disable-check-own-socket", "@"),
|
||||||
ARGPARSE_s_n (oNoDetach, "no-detach", N_("do not detach from the console")),
|
|
||||||
ARGPARSE_s_s (oLogFile, "log-file", N_("use a log file for the server")),
|
|
||||||
ARGPARSE_s_s (oFakedSystemTime, "faked-system-time", "@"),
|
ARGPARSE_s_s (oFakedSystemTime, "faked-system-time", "@"),
|
||||||
|
|
||||||
ARGPARSE_s_n (oBatch, "batch", "@"),
|
|
||||||
ARGPARSE_s_s (oHomedir, "homedir", "@"),
|
|
||||||
|
|
||||||
ARGPARSE_s_i (oListenBacklog, "listen-backlog", "@"),
|
ARGPARSE_s_i (oListenBacklog, "listen-backlog", "@"),
|
||||||
|
|
||||||
ARGPARSE_end () /* End of list */
|
ARGPARSE_end () /* End of list */
|
||||||
@ -563,7 +564,6 @@ main (int argc, char **argv )
|
|||||||
{
|
{
|
||||||
case aGPGConfList: gpgconf_list = 1; break;
|
case aGPGConfList: gpgconf_list = 1; break;
|
||||||
case aGPGConfTest: gpgconf_list = 2; break;
|
case aGPGConfTest: gpgconf_list = 2; break;
|
||||||
case oBatch: opt.batch=1; break;
|
|
||||||
case oDebugWait: debug_wait = pargs.r.ret_int; break;
|
case oDebugWait: debug_wait = pargs.r.ret_int; break;
|
||||||
case oNoGreeting: /* Dummy option. */ break;
|
case oNoGreeting: /* Dummy option. */ break;
|
||||||
case oNoVerbose: opt.verbose = 0; break;
|
case oNoVerbose: opt.verbose = 0; break;
|
||||||
|
@ -40,8 +40,6 @@ struct
|
|||||||
int verbose; /* Verbosity level */
|
int verbose; /* Verbosity level */
|
||||||
int quiet; /* Be as quiet as possible */
|
int quiet; /* Be as quiet as possible */
|
||||||
int dry_run; /* Don't change any persistent data */
|
int dry_run; /* Don't change any persistent data */
|
||||||
int batch; /* Batch mode */
|
|
||||||
|
|
||||||
/* True if we are running detached from the tty. */
|
/* True if we are running detached from the tty. */
|
||||||
int running_detached;
|
int running_detached;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user