git://scientific.zcu.cz
/
jra1mw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbde1cf
)
print usage with common help options
author
Miloš Mulač
<mulac@civ.zcu.cz>
Mon, 17 Jan 2005 13:13:57 +0000
(13:13 +0000)
committer
Miloš Mulač
<mulac@civ.zcu.cz>
Mon, 17 Jan 2005 13:13:57 +0000
(13:13 +0000)
org.glite.lb.client/examples/notify.c
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.lb.client/examples/notify.c
b/org.glite.lb.client/examples/notify.c
index
54670f9
..
7db0f73
100644
(file)
--- a/
org.glite.lb.client/examples/notify.c
+++ b/
org.glite.lb.client/examples/notify.c
@@
-83,7
+83,10
@@
int main(int argc,char **argv)
if ( argc < 2 ) {
usage(NULL); goto cleanup;
}
- if ( (argc < 2) || !strcmp(argv[1], "help") ) {
+ if ( (argc < 2) ||
+ !strcmp(argv[1], "help") || !strcmp(argv[1], "--help") ||
+ !strcmp(argv[1], "-h") || !strcmp(argv[1], "-?"))
+ {
usage(NULL); goto cleanup;
}
else if ( !strcmp(argv[1], "test") ) {