summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2024-02-20 11:40:49 +0100
committerWerner Koch <wk@gnupg.org>2024-02-20 11:40:49 +0100
commit95bc592ab547cd88f912d15973fa854b46f2f4d1 (patch)
treeec36165e361f84985a53ca9b8d7116ff4490c04f
parentscd:p15: Fix typo in a comment (diff)
downloadgnupg2-95bc592ab547cd88f912d15973fa854b46f2f4d1.tar.xz
gnupg2-95bc592ab547cd88f912d15973fa854b46f2f4d1.zip
g13: Allow command line style "g13 mount foo".
* g13/g13.c (main): Set flag ARGPARSE_FLAG_COMMAND. -- This requires gpgrt 1.48. Of course "g13 --mount foo" continues to work.
-rw-r--r--g13/g13.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/g13/g13.c b/g13/g13.c
index cb1880f80..4942e7893 100644
--- a/g13/g13.c
+++ b/g13/g13.c
@@ -457,6 +457,9 @@ main (int argc, char **argv)
pargs.argv = &argv;
pargs.flags |= (ARGPARSE_FLAG_RESET
| ARGPARSE_FLAG_KEEP
+#if GPGRT_VERSION_NUMBER >= 0x013000 /* >= 1.48 */
+ | ARGPARSE_FLAG_COMMAND
+#endif
| ARGPARSE_FLAG_SYS
| ARGPARSE_FLAG_USER);