Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2002:
[Freeciv-Dev] civclient --help fix
Home

[Freeciv-Dev] civclient --help fix

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] civclient --help fix
From: "Per I. Mathisen" <Per.Inge.Mathisen@xxxxxxxxxxx>
Date: Mon, 28 Jan 2002 10:47:48 +0100 (MET)

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



[Prev in Thread] Current Thread [Next in Thread]