11 static constexpr std::array<std::string_view, 2> extensions = {
25 std::span<std::string>& cmdLine)
32 return "Put cassette image specified in argument in "
33 "virtual cassetteplayer";
37 std::span<std::string>& )
48 return "Cassette image, raw recording or fMSX CAS image";
static std::string getArgument(const std::string &option, std::span< std::string > &cmdLine)
CassettePlayerCLI(CommandLineParser &parser)
void parseOption(const std::string &option, std::span< std::string > &cmdLine) override
std::string_view fileTypeCategoryName() const override
void parseFileType(const std::string &filename, std::span< std::string > &cmdLine) override
std::string_view fileTypeHelp() const override
static std::span< const std::string_view > getExtensions()
std::string_view optionHelp() const override
void registerOption(const char *str, CLIOption &cliOption, ParsePhase phase=PHASE_LAST, unsigned length=2)
void registerFileType(std::span< const std::string_view > extensions, CLIFileType &cliFileType)
Interpreter & getInterpreter() const
bool hasCommand(zstring_view name) const
TclObject executeCommand(Interpreter &interp, bool compile=false)
Interpret this TclObject as a command and execute it.
This file implemented 3 utility functions:
TclObject makeTclList(Args &&... args)