mirror of
git://git.gnupg.org/gnupg.git
synced 2024-11-09 21:28:51 +01:00
Add "help" sub option to --*-options.
This commit is contained in:
parent
039c27f153
commit
9a2a2904cc
@ -1,3 +1,8 @@
|
||||
2005-09-07 Werner Koch <wk@g10code.com>
|
||||
|
||||
* misc.c (parse_options): Allow meta option "help" to list all
|
||||
options and to exit the program.
|
||||
|
||||
2005-09-02 David Shaw <dshaw@jabberwocky.com>
|
||||
|
||||
* parse-packet.c (enum_sig_subpkt, parse_signature,
|
||||
@ -18,6 +23,11 @@
|
||||
* photoid.c (generate_photo_id): Enable readline completion and
|
||||
tilde expansion for the JPEG prompt.
|
||||
|
||||
2005-08-30 Werner Koch <wk@g10code.com>
|
||||
|
||||
* passphrase.c (agent_open): Print a warning and not an error in
|
||||
case of a missing agent. Should fix Debian bug #325578.
|
||||
|
||||
2005-08-26 David Shaw <dshaw@jabberwocky.com>
|
||||
|
||||
* misc.c (openpgp_pk_algo_usage): Default to allowing CERT for
|
||||
@ -79,6 +89,7 @@
|
||||
--passphrase command line option. Only useful in very special
|
||||
circumstances.
|
||||
|
||||
>>>>>>> .r3884
|
||||
2005-08-05 Werner Koch <wk@g10code.com>
|
||||
|
||||
* gpgv.c (keyserver_import_fprint): New stub.
|
||||
|
@ -156,6 +156,7 @@ get_manufacturer (unsigned int no)
|
||||
case 0:
|
||||
case 0xffff: return "test card";
|
||||
case 0x0001: return "PPC Card Systems";
|
||||
case 0x0002: return "Prism";
|
||||
default: return "unknown";
|
||||
}
|
||||
}
|
||||
|
@ -966,6 +966,15 @@ parse_options(char *str,unsigned int *options,
|
||||
{
|
||||
char *tok;
|
||||
|
||||
if (str && !strcmp (str, "help"))
|
||||
{
|
||||
int i;
|
||||
|
||||
for(i=0;opts[i].name;i++)
|
||||
printf ("%s\n", opts[i].name);
|
||||
g10_exit (0);
|
||||
}
|
||||
|
||||
while((tok=optsep(&str)))
|
||||
{
|
||||
int i,rev=0;
|
||||
|
@ -314,7 +314,7 @@ agent_open (int try, const char *orig_codeset)
|
||||
if (orig_codeset)
|
||||
bind_textdomain_codeset (PACKAGE, orig_codeset);
|
||||
#endif /*ENABLE_NLS*/
|
||||
log_error (_("gpg-agent is not available in this session\n"));
|
||||
log_info (_("gpg-agent is not available in this session\n"));
|
||||
opt.use_agent = 0;
|
||||
}
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user