12 IdImage(
int i, std::string m)
19static std::vector<IdImage> images;
31 int id = option[3] -
'a';
32 images.emplace_back(
id,
getArgument(option, cmdLine));
42 result = std::move(it->image);
52 if (!images.empty()) {
53 auto hd = char(::toupper(
'a' + images.front().id));
60 return "Use hard disk image in argument for the IDE or SCSI extensions";
static std::string getArgument(const std::string &option, std::span< std::string > &cmdLine)
void registerOption(const char *str, CLIOption &cliOption, ParsePhase phase=PHASE_LAST, unsigned length=2)
void parseDone() override
std::string_view optionHelp() const override
HDImageCLI(CommandLineParser &parser)
void parseOption(const std::string &option, std::span< std::string > &cmdLine) override
static std::string getImageForId(int id)
This file implemented 3 utility functions:
auto find(InputRange &&range, const T &value)
constexpr auto end(const zstring_view &x)