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:
parent
039c27f153
commit
9a2a2904cc
4 changed files with 22 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue