CernVM-FS  2.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
cmd_help.h
Go to the documentation of this file.
1 
5 #ifndef CVMFS_PUBLISH_CMD_HELP_H_
6 #define CVMFS_PUBLISH_CMD_HELP_H_
7 
8 #include <string>
9 
10 #include "publish/command.h"
11 
12 namespace publish {
13 
14 class CmdHelp : public Command {
15  public:
16  explicit CmdHelp(CommandList *commands) : commands_(commands) { }
17  virtual std::string GetName() const { return "help"; }
18  virtual std::string GetBrief() const {
19  return "Print information about a command";
20  }
21  virtual std::string GetUsage() const { return "<command>"; }
22  virtual unsigned GetMinPlainArgs() const { return 1; }
23  virtual ParameterList GetParams() const { return ParameterList(); }
24 
25  virtual int Main(const Options &options);
26 
27  private:
29 };
30 
31 } // namespace publish
32 
33 #endif // CVMFS_PUBLISH_CMD_HELP_H_
CmdHelp(CommandList *commands)
Definition: cmd_help.h:16
virtual ParameterList GetParams() const
Definition: cmd_help.h:23
CommandList * commands_
Definition: cmd_help.h:28
virtual unsigned GetMinPlainArgs() const
Definition: cmd_help.h:22
virtual int Main(const Options &options)
Definition: cmd_help.cc:20
std::vector< Parameter > ParameterList
Definition: command.h:92
virtual std::string GetUsage() const
Definition: cmd_help.h:21
virtual std::string GetName() const
Definition: cmd_help.h:17
virtual std::string GetBrief() const
Definition: cmd_help.h:18