// First parse command line options looking for --aircraft=, this
// will override anything specified in a config file
aircraft = fgScanForOption( "--aircraft=", argc, argv );
+ if ( aircraft.empty() ) {
+ // check synonym option
+ aircraft = fgScanForOption( "--vehicle=", argc, argv );
+ }
// Check in one of the user configuration files.
- if ( aircraft.empty() )
+ if ( aircraft.empty() ) {
aircraft = fgScanForOption( "--aircraft=" );
+ }
+ if ( aircraft.empty() ) {
+ aircraft = fgScanForOption( "--vehicle=" );
+ }
// if an aircraft was specified, set the property name
if ( !aircraft.empty() ) {
{"flight-plan", true, OPTION_FUNC, "", false, "", fgOptFlightPlan },
{"config", true, OPTION_FUNC, "", false, "", fgOptConfig },
{"aircraft", true, OPTION_STRING, "/sim/aircraft", false, "", 0 },
+ {"vehicle", true, OPTION_STRING, "/sim/aircraft", false, "", 0 },
{"failure", true, OPTION_FUNC, "", false, "", fgOptFailure },
{"com1", true, OPTION_DOUBLE, "/instrumentation/comm[0]/frequencies/selected-mhz", false, "", 0 },
{"com2", true, OPTION_DOUBLE, "/instrumentation/comm[1]/frequencies/selected-mhz", false, "", 0 },