aboutsummaryrefslogtreecommitdiffstats
path: root/g10/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/misc.c')
-rw-r--r--g10/misc.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/g10/misc.c b/g10/misc.c
index 9ccc841e9..8d7b6804a 100644
--- a/g10/misc.c
+++ b/g10/misc.c
@@ -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;