Freeciv21
Develop your civilization from humble roots to a global empire
mpcmdline.cpp File Reference
#include <QCommandLineParser>
#include "fcintl.h"
#include "version.h"
#include "modinst.h"
#include "mpcmdline.h"
+ Include dependency graph for mpcmdline.cpp:

Go to the source code of this file.

Functions

void fcmp_parse_cmdline (const QCoreApplication &app)
 Parse commandline parameters. More...
 

Variables

struct fcmp_params fcmp
 

Function Documentation

◆ fcmp_parse_cmdline()

void fcmp_parse_cmdline ( const QCoreApplication &  app)

Parse commandline parameters.

Modified argv[] so it contains only ui-specific options afterwards. Number of those ui-specific options is returned. Currently this is implemented in a way that it never fails. Either it returns with success or exit()s. Implementation can be changed so that this returns with value -1 in case program should be shut down instead of exiting itself. Callers are prepared for such implementation. This call initialises the log system.

Definition at line 39 of file mpcmdline.cpp.

Referenced by main().

Variable Documentation

◆ fcmp