From: Daniel KouĊ™il Date: Tue, 14 Mar 2006 13:37:08 +0000 (+0000) Subject: -help option X-Git-Tag: merge_for_3_1_after~20 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=2921584a3e2ac5c5f04eee091dd4820580f96fee;p=jra1mw.git -help option --- diff --git a/org.glite.security.proxyrenewal/examples/renew_core.c b/org.glite.security.proxyrenewal/examples/renew_core.c index f150f75..a527047 100644 --- a/org.glite.security.proxyrenewal/examples/renew_core.c +++ b/org.glite.security.proxyrenewal/examples/renew_core.c @@ -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; }