| 16 | }; |
| 17 | |
| 18 | struct CommandLineParseResult { |
| 19 | enum class Status { |
| 20 | Ok, |
| 21 | Error, |
| 22 | VersionRequested, |
| 23 | HelpRequested |
| 24 | }; |
| 25 | Status statusCode = Status::Ok; |
| 26 | std::optional<QString> errorString = std::nullopt; |
| 27 | }; |
| 28 | |
| 29 | CommandLineParseResult parseCommandLine(QCommandLineParser &parser, ParsedOptions *query) { |
| 30 | using Status = CommandLineParseResult::Status; |
nothing calls this directly
no outgoing calls
no test coverage detected