Rename fgfs' option --log-file to --log-dir
This makes sense, since this option expects a directory parameter, or the special value 'desktop', and computes the file's base name on its own. cf. <https://sourceforge.net/p/flightgear/mailman/message/35715817/> and <https://sourceforge.net/p/flightgear/mailman/message/35715836/>
This commit is contained in:
parent
8372f086c1
commit
dab68505bb
1 changed files with 2 additions and 2 deletions
|
@ -1059,7 +1059,7 @@ fgOptLogClasses( const char *arg )
|
|||
}
|
||||
|
||||
static int
|
||||
fgOptLogFile(const char* arg)
|
||||
fgOptLogDir(const char* arg)
|
||||
{
|
||||
SGPath dirPath;
|
||||
if (!strcmp(arg, "desktop")) {
|
||||
|
@ -1714,7 +1714,7 @@ struct OptionDesc {
|
|||
{"trace-write", true, OPTION_FUNC | OPTION_MULTI, "", false, "", fgOptTraceWrite },
|
||||
{"log-level", true, OPTION_FUNC, "", false, "", fgOptLogLevel },
|
||||
{"log-class", true, OPTION_FUNC, "", false, "", fgOptLogClasses },
|
||||
{"log-file", true, OPTION_FUNC | OPTION_MULTI, "", false, "", fgOptLogFile },
|
||||
{"log-dir", true, OPTION_FUNC | OPTION_MULTI, "", false, "", fgOptLogDir },
|
||||
{"view-offset", true, OPTION_FUNC | OPTION_MULTI, "", false, "", fgOptViewOffset },
|
||||
{"visibility", true, OPTION_FUNC, "", false, "", fgOptVisibilityMeters },
|
||||
{"visibility-miles", true, OPTION_FUNC, "", false, "", fgOptVisibilityMiles },
|
||||
|
|
Loading…
Reference in a new issue