1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

Add "help" sub option to --*-options.

This commit is contained in:
Werner Koch 2005-09-07 15:53:03 +00:00
parent 039c27f153
commit 9a2a2904cc
4 changed files with 22 additions and 1 deletions

View file

@ -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;