diff options
author | René Korthaus <[email protected]> | 2017-08-28 22:45:11 +0200 |
---|---|---|
committer | René Korthaus <[email protected]> | 2018-01-04 18:18:22 +0100 |
commit | 5fb1cdfb5d7c6f854102ce33f8c7cad2a3b27153 (patch) | |
tree | a643600981c025985599c1a0ee13f1a516a9731e /src/cli/psk.cpp | |
parent | 5ac3d723d1be27098bc3a18204a07a5972a0e283 (diff) |
Print a command description for cli help
Diffstat (limited to 'src/cli/psk.cpp')
-rw-r--r-- | src/cli/psk.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/cli/psk.cpp b/src/cli/psk.cpp index d244acd8d..45a5918d8 100644 --- a/src/cli/psk.cpp +++ b/src/cli/psk.cpp @@ -19,6 +19,11 @@ class PSK_Tool_Base : public Command public: PSK_Tool_Base(const std::string& spec) : Command(spec) {} + std::string group() const override + { + return "psk"; + } + void go() override { const std::string db_filename = get_arg("db"); @@ -39,6 +44,11 @@ class PSK_Tool_Set final : public PSK_Tool_Base public: PSK_Tool_Set() : PSK_Tool_Base("psk_set db db_key name psk") {} + std::string description() const override + { + return "Save a PSK encrypted in the database"; + } + private: void psk_operation(Botan::PSK_Database& db) override { @@ -53,6 +63,11 @@ class PSK_Tool_Get final : public PSK_Tool_Base public: PSK_Tool_Get() : PSK_Tool_Base("psk_get db db_key name") {} + std::string description() const override + { + return "Read a value saved with psk_set"; + } + private: void psk_operation(Botan::PSK_Database& db) override { @@ -67,6 +82,11 @@ class PSK_Tool_List final : public PSK_Tool_Base public: PSK_Tool_List() : PSK_Tool_Base("psk_list db db_key") {} + std::string description() const override + { + return "List all values saved to the database"; + } + private: void psk_operation(Botan::PSK_Database& db) override { |