summaryrefslogtreecommitdiff
path: root/src/commandline.h
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2021-01-11 01:43:48 -0500
committerisanae <14251494+isanae@users.noreply.github.com>2021-01-18 08:20:08 -0500
commit65a9e51e0ed8169bbf2a176ce147ca5a9ae09a6f (patch)
tree9c7e0959f711ecbb90a3b778f22778bfa1d8a094 /src/commandline.h
parent09eb507ddad0d164a39d72c5c121d332966ef462 (diff)
added refresh command
added more help for run
Diffstat (limited to 'src/commandline.h')
-rw-r--r--src/commandline.h26
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;