Skip to content

Commit 029a334

Browse files
committed
fix 2385
1 parent bc41ab5 commit 029a334

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

app/HighsRuntimeOptions.h

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -41,55 +41,56 @@ struct HighsCommandLineOptions {
4141

4242
void setupCommandLineOptions(CLI::App& app,
4343
HighsCommandLineOptions& cmd_options) {
44-
const auto checkSingle = [](const std::string& input) -> std::string {
45-
if (input.find(' ') != std::string::npos) {
46-
return "Multiple files not implemented.";
47-
}
48-
return {};
49-
};
44+
// Does not work on windows with spaces in directory or file names.
45+
// const auto checkSingle = [](const std::string& input) -> std::string {
46+
// if (input.find(' ') != std::string::npos) {
47+
// return "Multiple files not implemented.";
48+
// }
49+
// return {};
50+
// };
5051

5152
// Command line file specifications.
5253
app.add_option("--" + kModelFileString + "," + kModelFileString,
5354
cmd_options.model_file, "File of model to solve.")
5455
// Can't use required here because it breaks version printing with -v.
5556
// ->required()
56-
->check(checkSingle)
57+
// ->check(checkSingle)
5758
->check(CLI::ExistingFile);
5859

5960
app.add_option("--" + kOptionsFileString, cmd_options.options_file,
6061
"File containing HiGHS options.")
61-
->check(checkSingle)
62+
// ->check(checkSingle)
6263
->check(CLI::ExistingFile);
6364

6465
app.add_option("--" + kReadSolutionFileString,
6566
cmd_options.cmd_read_solution_file,
6667
"File of solution to read.")
67-
->check(checkSingle)
68+
// ->check(checkSingle)
6869
->check(CLI::ExistingFile);
6970

7071
app.add_option("--" + kReadBasisFileString, cmd_options.cmd_read_basis_file,
7172
"File of initial basis to read.")
72-
->check(checkSingle)
73+
// ->check(checkSingle)
7374
->check(CLI::ExistingFile);
7475

7576
app.add_option("--" + kWriteModelFileString, cmd_options.cmd_write_model_file,
76-
"File for writing out model.")
77+
"File for writing out model.");
7778
// File does not need to exist
7879
// ->check(CLI::ExistingFile)
79-
->check(checkSingle);
80+
// ->check(checkSingle);
8081

8182
app.add_option("--" + kWriteSolutionFileString,
8283
cmd_options.cmd_write_solution_file,
83-
"File for writing out solution.")
84+
"File for writing out solution.");
8485
// File does not need to exist
8586
// ->check(CLI::ExistingFile)
86-
->check(checkSingle);
87+
// ->check(checkSingle);
8788

8889
app.add_option("--" + kWriteBasisFileString, cmd_options.cmd_write_basis_file,
89-
"File for writing out final basis.")
90+
"File for writing out final basis.");
9091
// File does not need to exist
9192
// ->check(CLI::ExistingFile)
92-
->check(checkSingle);
93+
// ->check(checkSingle);
9394

9495
// Command line option specifications.
9596
app.add_option("--" + kPresolveString, cmd_options.cmd_presolve,

0 commit comments

Comments
 (0)