Crossfire Server, Trunk
Command_Line_Options Struct Reference
+ Collaboration diagram for Command_Line_Options:

Data Fields

const char * cmd_option
 
void(* func )()
 
uint8_t num_args
 
uint8_t pass
 

Detailed Description

One command line option definition. Most of this is shamelessly stolen from XSysStats. But since that is also my program, no problem.

Definition at line 358 of file init.cpp.

Field Documentation

◆ cmd_option

const char* Command_Line_Options::cmd_option

How it is called on the command line.

Definition at line 359 of file init.cpp.

Referenced by parse_args().

◆ func

void(* Command_Line_Options::func) ()

function to call when we match this. if num_args is true, than that gets passed to the function, otherwise nothing is passed

Definition at line 362 of file init.cpp.

Referenced by parse_args().

◆ num_args

uint8_t Command_Line_Options::num_args

Number or args it takes.

Definition at line 360 of file init.cpp.

Referenced by parse_args().

◆ pass

uint8_t Command_Line_Options::pass

What pass this should be processed on.

Todo:
describe passes :)

Definition at line 361 of file init.cpp.

Referenced by parse_args().


The documentation for this struct was generated from the following file: