Freeciv-3.3: /fast/freeciv/nightly/main/tools/fcmp/mpcmdline.c File Reference

Freeciv-3.3

Loading...
Searching...
No Matches
Functions | Variables
mpcmdline.c File Reference
`#include "fc_cmdline.h"`
`#include "fciconv.h"`
`#include "fcintl.h"`
`#include "support.h"`
`#include "fc_cmdhelp.h"`
`#include "version.h"`
`#include "modinst.h"`
`#include "mpcmdline.h"`

Go to the source code of this file.

## Functions

int | fcmp_parse_cmdline (int argc, char *argv[])

## Variables

struct fcmp_params | fcmp

## Function Documentation

## ◆ fcmp_parse_cmdline()

int fcmp_parse_cmdline | ( | int | argc,
|  | char * | argv[]
| ) |  |

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 45 of file mpcmdline.c.

Referenced by main(), and main().

## Variable Documentation

## ◆ fcmp

struct fcmp_params fcmp

extern

Definition at line 37 of file mpcli.c.

Referenced by activate_gui(), activate_gui(), download_modpack(), download_modpack_list(), download_modpack_recursive(), download_thread(), download_thread(), download_thread(), fcmp_parse_cmdline(), gui_download_modpack(), load_install_info_lists(), main(), main(), modinst_setup_widgets(), modinst_setup_widgets(), and modinst_setup_widgets().