diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-07-18 05:07:32 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2020-11-03 11:39:01 -0500 |
| commit | ccab9eae8df3cf5367ce5cf164c98d1534ac13cb (patch) | |
| tree | 603bddc6dc14d256d4b416514e089326be83c42e /src/commandline.h | |
| parent | 75cc2ffead148ab2409cd1ef469613d2e9b80e17 (diff) | |
add warning when profile given with -p doesn't exist
implemented moshortcut, nxm links and executable names as command line options
Diffstat (limited to 'src/commandline.h')
| -rw-r--r-- | src/commandline.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/commandline.h b/src/commandline.h index deeb9923..cdd1c917 100644 --- a/src/commandline.h +++ b/src/commandline.h @@ -1,5 +1,6 @@ #pragma once +#include "moshortcut.h" #include <vector> #include <memory> @@ -92,15 +93,27 @@ public: CommandLine(); std::optional<int> run(const std::wstring& line); + void clear(); + std::string usage(const Command* c=nullptr) const; bool multiple() const; + std::optional<QString> profile() const; + const MOShortcut& shortcut() const; + std::optional<QString> nxmLink() const; + std::optional<QString> executable() const; + + const QStringList& untouched() const; private: po::options_description m_visibleOptions, m_allOptions; po::positional_options_description m_positional; std::vector<std::unique_ptr<Command>> m_commands; po::variables_map m_vm; + MOShortcut m_shortcut; + std::optional<QString> m_nxmLink; + std::optional<QString> m_executable; + QStringList m_untouched; void createOptions(); std::string more() const; |
