[Freeciv-Dev] civclient --help fix
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
When you issue --help, you expect the program to list all available
options and then quit. civserver does this correctly, but not civclient.
This miniature patch fixes this.
Index: client/civclient.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/civclient.c,v
retrieving revision 1.105
diff -u -2 -r1.105 civclient.c
--- client/civclient.c 2002/01/09 16:12:52 1.105
+++ client/civclient.c 2002/01/28 09:45:07
@@ -134,4 +134,5 @@
"Use data file FILE.tilespec for tiles\n"));
fprintf(stderr, _(" -v, --version\t\tPrint the version number\n"));
+ exit(0);
} else if (is_option("--version",argv[i])) {
fprintf(stderr, "%s %s\n", freeciv_name_version(), client_string);
Yours,
Per
"What we anticipate seldom occurs: but what we least expect generally
happens." -- Benjamin Disraeli
- [Freeciv-Dev] civclient --help fix,
Per I. Mathisen <=
|
|