aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2022-01-12 19:26:19 +0000
committerWerner Koch <[email protected]>2022-01-12 19:27:14 +0000
commitec4a1cffb865a724f36fbf9ad2de984d003fd650 (patch)
treec2d689d6723757d973c9f2738bc15a21f635a264
parentgpg: Fix adding the list of ultimate trusted keys. (diff)
downloadgnupg-ec4a1cffb865a724f36fbf9ad2de984d003fd650.tar.gz
gnupg-ec4a1cffb865a724f36fbf9ad2de984d003fd650.zip
gpgconf: Add command aliases -L -K -R.
* tools/gpgconf.c (enum cmd_and_opt_values): Assign shortcuts. -- I have to type them to often ;-)
-rw-r--r--doc/tools.texi4
-rw-r--r--tools/gpgconf.c7
2 files changed, 7 insertions, 4 deletions
diff --git a/doc/tools.texi b/doc/tools.texi
index 8041f4859..837a3752f 100644
--- a/doc/tools.texi
+++ b/doc/tools.texi
@@ -319,6 +319,7 @@ Update all configuration files with values taken from the global
configuration file (usually @file{/etc/gnupg/gpgconf.conf}).
@item --list-dirs [@var{names}]
+@itemx -L
Lists the directories used by @command{gpgconf}. One directory is
listed per line, and each line consists of a colon-separated list where
the first field names the directory type (for example @code{sysconfdir})
@@ -352,8 +353,8 @@ force an update of that file this command can be used:
gpg-connect-agent --dirmngr 'loadswdb --force' /bye
@end example
-
@item --reload [@var{component}]
+@itemx -R
@opindex reload
Reload all or the given component. This is basically the same as
sending a SIGHUP to the component. Components which don't support
@@ -370,6 +371,7 @@ may use this command to ensure that they are started. Using "all" for
@var{component} launches all components which are daemons.
@item --kill [@var{component}]
+@itemx -K
@opindex kill
Kill the given component that runs as a daemon, including
@command{gpg-agent}, @command{dirmngr}, and @command{scdaemon}. A
diff --git a/tools/gpgconf.c b/tools/gpgconf.c
index 093468eb3..4b9548d50 100644
--- a/tools/gpgconf.c
+++ b/tools/gpgconf.c
@@ -50,6 +50,10 @@ enum cmd_and_opt_values
oRuntime = 'r',
oComponent = 'c',
oNull = '0',
+ aListDirs = 'L',
+ aKill = 'K',
+ aReload = 'R',
+
oNoVerbose = 500,
oHomedir,
oBuilddir,
@@ -66,13 +70,10 @@ enum cmd_and_opt_values
aListConfig,
aCheckConfig,
aQuerySWDB,
- aListDirs,
aLaunch,
- aKill,
aCreateSocketDir,
aRemoveSocketDir,
aApplyProfile,
- aReload,
aShowVersions,
aShowConfigs,
aShowCodepages