From 1faf60ae132ab4f3d0b5bd56f904b8318b440832 Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Fri, 27 Dec 2024 00:16:34 +0000 Subject: [PATCH] Fix #13199: -f command line parameter does not need a value. (#13200) --- 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; }