1
0
Fork 0

Fix #13199: -f command line parameter does not need a value. (#13200)

pull/13203/head
Peter Nelson 2024-12-27 00:16:34 +00:00 committed by GitHub
parent ae7bd04de8
commit 1faf60ae13
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 3 deletions

View File

@ -484,15 +484,16 @@ static std::vector<OptionData> CreateOptions()
std::vector<OptionData> 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;
}