From 33362b4d9e0e2777d746b610c53bd0b3fa92d624 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 1 Aug 2025 16:20:32 +0200 Subject: gpg: Improve the "help" and "full-help" --foo-options. * g10/misc.c (parse_options): Also allow option "fullhelp". Print current status of the option. --- g10/misc.c | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/g10/misc.c b/g10/misc.c index c52091830..43be620e6 100644 --- a/g10/misc.c +++ b/g10/misc.c @@ -1578,25 +1578,37 @@ parse_options(char *str,unsigned int *options, { char *tok; - if (str && (!strcmp (str, "help") || !strcmp (str, "full-help"))) + if (str && (!strcmp (str, "help") + || !strcmp (str, "full-help") || !strcmp (str, "fullhelp"))) { int i,maxlen=0; int full = *str == 'f'; + int set; /* Figure out the longest option name so we can line these up neatly. */ for(i=0;opts[i].name;i++) - if(opts[i].help && maxlen