diff options
Diffstat (limited to 'src/commandline.h')
| -rw-r--r-- | src/commandline.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/commandline.h b/src/commandline.h index 6f96d724..9cad4c71 100644 --- a/src/commandline.h +++ b/src/commandline.h @@ -32,6 +32,10 @@ public: // std::string usageLine() const; + // shown after the usage line + // + std::string moreInfo() const; + // returns all options for this command, including hidden ones; used to parse // the command line @@ -77,6 +81,10 @@ protected: // virtual std::string getUsageLine() const; + // returns text shown after the usage line + // + virtual std::string getMoreInfo() const; + // returns visible options specific to this command // virtual po::options_description getVisibleOptions() const; @@ -159,10 +167,14 @@ class RunCommand : public Command { protected: std::string getUsageLine() const override; + std::string getMoreInfo() const override; + po::options_description getVisibleOptions() const override; po::options_description getInternalOptions() const override; po::positional_options_description getPositional() const override; Meta meta() const override; + + bool canForwardToPrimary() const override; std::optional<int> runPostOrganizer(OrganizerCore& core) override; }; @@ -173,14 +185,28 @@ class ReloadPluginCommand : public Command { protected: std::string getUsageLine() const override; + po::options_description getInternalOptions() const override; po::positional_options_description getPositional() const override; Meta meta() const override; + bool canForwardToPrimary() const override; std::optional<int> runPostOrganizer(OrganizerCore& core) override; }; +// refreshes mo +// +class RefreshCommand : public Command +{ +protected: + Meta meta() const override; + bool canForwardToPrimary() const override; + std::optional<int> runPostOrganizer(OrganizerCore& core) override; +}; + + + // parses the command line and runs any given command // // the command line used to support a few commands but with no real conventions; |
