From d90d7b859d23c46efe3481dacb6ef84c72f98cb8 Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Thu, 26 Dec 2024 23:33:58 +0000 Subject: [PATCH] Fix #13199: -f command line parameter does not need a value. --- src/openttd.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/openttd.cpp b/src/openttd.cpp index 25082be2c5..7bd67a9699 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -484,15 +484,16 @@ static std::vector CreateOptions() std::vector options; /* Options that require a parameter. */ for (char c : "GIMSbcmnpqrstv") options.push_back({ .type = ODF_HAS_VALUE, .id = c, .shortname = c }); -#if !defined(_WIN32) - options.push_back({ .type = ODF_HAS_VALUE, .id = 'f', .shortname = 'f' }); -#endif /* Options with an optional parameter. */ for (char c : "Ddg") options.push_back({ .type = ODF_OPTIONAL_VALUE, .id = c, .shortname = c }); /* Options without a parameter. */ for (char c : "QXehx") options.push_back({ .type = ODF_NO_VALUE, .id = c, .shortname = c }); +#if !defined(_WIN32) + options.push_back({ .type = ODF_NO_VALUE, .id = 'f', .shortname = 'f' }); +#endif + return options; }