16static std::vector<IdImage> images;
28 int id = option[3] -
'a';
29 images.emplace_back(IdImage{
id,
getArgument(option, cmdLine)});
39 result = std::move(it->image);
49 if (!images.empty()) {
50 char hd = char(::toupper(
'a' + images.front().id));
57 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)