RigsofRods
Soft-body Physics Simulation
Enumerations | Variables
AppCommandLine.cpp File Reference
#include "Console.h"
#include "GameContext.h"
#include "ErrorUtils.h"
#include "PlatformUtils.h"
#include "Utils.h"
#include "SimpleOpt.h"
+ Include dependency graph for AppCommandLine.cpp:

Go to the source code of this file.

Enumerations

enum  {
  OPT_HELP, OPT_MAP, OPT_POS, OPT_ROT,
  OPT_TRUCK, OPT_VER, OPT_RESUME, OPT_CHECKCACHE,
  OPT_TRUCKCONFIG, OPT_RUNSCRIPT, OPT_ENTERTRUCK, OPT_JOINMPSERVER
}
 

Variables

CSimpleOpt::SOption cmdline_options []
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
OPT_HELP 
OPT_MAP 
OPT_POS 
OPT_ROT 
OPT_TRUCK 
OPT_VER 
OPT_RESUME 
OPT_CHECKCACHE 
OPT_TRUCKCONFIG 
OPT_RUNSCRIPT 
OPT_ENTERTRUCK 
OPT_JOINMPSERVER 

Definition at line 37 of file AppCommandLine.cpp.

Variable Documentation

◆ cmdline_options

CSimpleOpt::SOption cmdline_options[]
Initial value:
= {
{ OPT_MAP, ("-map"), SO_REQ_SEP },
{ OPT_MAP, ("-terrain"), SO_REQ_SEP },
{ OPT_POS, ("-pos"), SO_REQ_SEP },
{ OPT_ROT, ("-rot"), SO_REQ_SEP },
{ OPT_TRUCK, ("-truck"), SO_REQ_SEP },
{ OPT_TRUCKCONFIG, ("-truckconfig"), SO_REQ_SEP },
{ OPT_RUNSCRIPT, ("-runscript"), SO_REQ_SEP },
{ OPT_ENTERTRUCK, ("-enter"), SO_NONE },
{ OPT_HELP, ("--help"), SO_NONE },
{ OPT_HELP, ("-help"), SO_NONE },
{ OPT_RESUME, ("-resume"), SO_NONE },
{ OPT_CHECKCACHE, ("-checkcache"), SO_NONE },
{ OPT_VER, ("-version"), SO_NONE },
{ OPT_JOINMPSERVER, ("-joinserver"), SO_REQ_CMB },
SO_END_OF_OPTIONS
}

Definition at line 53 of file AppCommandLine.cpp.

OPT_ROT
@ OPT_ROT
Definition: AppCommandLine.cpp:41
OPT_MAP
@ OPT_MAP
Definition: AppCommandLine.cpp:39
OPT_POS
@ OPT_POS
Definition: AppCommandLine.cpp:40
OPT_TRUCK
@ OPT_TRUCK
Definition: AppCommandLine.cpp:42
OPT_ENTERTRUCK
@ OPT_ENTERTRUCK
Definition: AppCommandLine.cpp:48
OPT_RESUME
@ OPT_RESUME
Definition: AppCommandLine.cpp:44
OPT_TRUCKCONFIG
@ OPT_TRUCKCONFIG
Definition: AppCommandLine.cpp:46
OPT_JOINMPSERVER
@ OPT_JOINMPSERVER
Definition: AppCommandLine.cpp:49
OPT_VER
@ OPT_VER
Definition: AppCommandLine.cpp:43
OPT_HELP
@ OPT_HELP
Definition: AppCommandLine.cpp:38
OPT_RUNSCRIPT
@ OPT_RUNSCRIPT
Definition: AppCommandLine.cpp:47
OPT_CHECKCACHE
@ OPT_CHECKCACHE
Definition: AppCommandLine.cpp:45