From 2921584a3e2ac5c5f04eee091dd4820580f96fee Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Kou=C5=99il?= Date: Tue, 14 Mar 2006 13:37:08 +0000 Subject: [PATCH] -help option --- org.glite.security.proxyrenewal/examples/renew_core.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } -- 1.8.2.3