1
0
Fork 0

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

pull/13200/head
Peter Nelson 2024-12-26 23:33:58 +00:00
parent ae7bd04de8
commit d90d7b859d
No known key found for this signature in database
GPG Key ID: 8EF8F0A467DF75ED
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;
}