openMSX
CliExtension.hh
Go to the documentation of this file.
1 #ifndef CLIEXTENSION_HH
2 #define CLIEXTENSION_HH
3 
4 #include "CLIOption.hh"
5 
6 namespace openmsx {
7 
8 class CommandLineParser;
9 
10 class CliExtension final : public CLIOption
11 {
12 public:
13  explicit CliExtension(CommandLineParser& cmdLineParser);
14 
15  void parseOption(const std::string& option,
16  span<std::string>& cmdLine) override;
17  string_view optionHelp() const override;
18 
19 private:
20  CommandLineParser& cmdLineParser;
21 };
22 
23 } // namespace openmsx
24 
25 #endif
Definition: span.hh:34
string_view optionHelp() const override
Definition: CliExtension.cc:39
void parseOption(const std::string &option, span< std::string > &cmdLine) override
Definition: CliExtension.cc:21
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
CliExtension(CommandLineParser &cmdLineParser)
Definition: CliExtension.cc:11
This class implements a (close approximation) of the std::string_view class.
Definition: string_view.hh:16