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/compress.cpp | |
parent | 5ac3d723d1be27098bc3a18204a07a5972a0e283 (diff) |
Print a command description for cli help
Diffstat (limited to 'src/cli/compress.cpp')
-rw-r--r-- | src/cli/compress.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/cli/compress.cpp b/src/cli/compress.cpp index e9cd02290..3104607fc 100644 --- a/src/cli/compress.cpp +++ b/src/cli/compress.cpp @@ -39,6 +39,16 @@ class Compress final : public Command return input_fsname + "." + suffix_info->second; } + std::string group() const override + { + return "compression"; + } + + std::string description() const override + { + return "Compress a given file"; + } + void go() override { const std::string comp_type = get_arg("type"); @@ -112,6 +122,16 @@ class Decompress final : public Command suffix = in_file.substr(last_dot + 1, std::string::npos); } + std::string group() const override + { + return "compression"; + } + + std::string description() const override + { + return "Decompress a given compressed archive"; + } + void go() override { const size_t buf_size = get_arg_sz("buf-size"); |