Make —parking-id an alias for —parkpos
This commit is contained in:
parent
639c8fd4b4
commit
098c489ae0
1 changed files with 2 additions and 10 deletions
|
@ -753,6 +753,7 @@ static int
|
||||||
fgOptParkpos( const char * arg )
|
fgOptParkpos( const char * arg )
|
||||||
{
|
{
|
||||||
fgSetString("/sim/presets/parkpos", arg);
|
fgSetString("/sim/presets/parkpos", arg);
|
||||||
|
fgSetBool("/sim/presets/parking-requested", true);
|
||||||
return FG_OPTIONS_OK;
|
return FG_OPTIONS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1434,15 +1435,6 @@ fgOptRunway( const char *arg )
|
||||||
return FG_OPTIONS_OK;
|
return FG_OPTIONS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
|
||||||
fgOptParking( const char *arg )
|
|
||||||
{
|
|
||||||
cerr << "Processing argument " << arg << endl;
|
|
||||||
fgSetString("/sim/presets/parking", arg );
|
|
||||||
fgSetBool ("/sim/presets/parking-requested", true );
|
|
||||||
return FG_OPTIONS_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
fgOptCallSign(const char * arg)
|
fgOptCallSign(const char * arg)
|
||||||
{
|
{
|
||||||
|
@ -1820,7 +1812,7 @@ struct OptionDesc {
|
||||||
{"min-status", true, OPTION_STRING, "/sim/aircraft-min-status", false, "all", 0 },
|
{"min-status", true, OPTION_STRING, "/sim/aircraft-min-status", false, "all", 0 },
|
||||||
{"livery", true, OPTION_FUNC, "", false, "", fgOptLivery },
|
{"livery", true, OPTION_FUNC, "", false, "", fgOptLivery },
|
||||||
{"ai-scenario", true, OPTION_FUNC | OPTION_MULTI, "", false, "", fgOptScenario },
|
{"ai-scenario", true, OPTION_FUNC | OPTION_MULTI, "", false, "", fgOptScenario },
|
||||||
{"parking-id", true, OPTION_FUNC, "", false, "", fgOptParking },
|
{"parking-id", true, OPTION_FUNC, "", false, "", fgOptParkpos },
|
||||||
{"version", false, OPTION_IGNORE, "", false, "", 0 },
|
{"version", false, OPTION_IGNORE, "", false, "", 0 },
|
||||||
{"json-report", false, OPTION_IGNORE, "", false, "", 0 },
|
{"json-report", false, OPTION_IGNORE, "", false, "", 0 },
|
||||||
{"enable-fpe", false, OPTION_IGNORE, "", false, "", 0},
|
{"enable-fpe", false, OPTION_IGNORE, "", false, "", 0},
|
||||||
|
|
Loading…
Add table
Reference in a new issue