-help option
authorDaniel Kouřil <kouril@ics.muni.cz>
Tue, 14 Mar 2006 13:37:08 +0000 (13:37 +0000)
committerDaniel Kouřil <kouril@ics.muni.cz>
Tue, 14 Mar 2006 13:37:08 +0000 (13:37 +0000)
org.glite.security.proxyrenewal/examples/renew_core.c

index f150f75..a527047 100644 (file)
@@ -6,10 +6,11 @@
 static struct option const long_options[] = {
    { "server",   required_argument, 0, 's' },
    { "proxy",    required_argument, 0, 'p' },
+   { "help",     no_argument,       0, 'h' },
    { NULL, 0, NULL, 0}
 };
 
-static char short_options[] = "s:p:";
+static char short_options[] = "s:p:h";
 
 /* Two ugly hacks, will be removed once the context is introduced */
 char *vomsconf = NULL;
@@ -53,6 +54,8 @@ main(int argc, char *argv[])
       exit(1);
    }
 
+   printf("%s\n", new_proxy);
+
    return 0;
 }