11 : cmdLineParser(cmdLineParser_)
13 for (
const auto* ext : {
"-ext",
"-exta",
"-extb",
"-extc",
"-extd"}) {
21 std::string extensionName =
getArgument(option, cmdLine);
25 if (option.size() == 5) {
39 return "Insert the extension specified in argument";
static std::string getArgument(const std::string &option, std::span< std::string > &cmdLine)
CliExtension(CommandLineParser &cmdLineParser)
std::string_view optionHelp() const override
void parseOption(const std::string &option, std::span< std::string > &cmdLine) override
void registerOption(const char *str, CLIOption &cliOption, ParsePhase phase=PHASE_LAST, unsigned length=2)
MSXMotherBoard * getMotherBoard() const
std::unique_ptr< HardwareConfig > loadExtension(std::string_view extensionName, std::string_view slotName)
std::string insertExtension(std::string_view name, std::unique_ptr< HardwareConfig > extension)
This file implemented 3 utility functions: