Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2000:
[Freeciv-Dev] Re: --help
Home

[Freeciv-Dev] Re: --help

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: --help
From: "Per I. Mathisen" <Per.Inge.Mathisen@xxxxxxxxxxx>
Date: Wed, 19 Jan 2000 12:42:59 +0100 (MET)

On Wed, 19 Jan 2000, David Pfitzner wrote:
> I agree this is a bit of a mess and should be fixed.  
> One complication to note is that the clients are not
> actually the same in their option handling -- similar,
> but not identical.  Its unclear whether its worth trying 
> to make them identical, given that the command-line 
> arguments are at some stage passed on to gui-dependent 
> handling.  

I suggest civclient.c parses the options it can parse and 
then hands the job over to the gui part. All it has to do
is not call exit(0). The same can be done with --help, the
pre-gui code prints out the general help text, and then
the gui part can add some gui-dependent options at the 
bottom.

That way we would both avoid redundancy and get flexibility.

Yours,
Per


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