Showing list of available commands in help message.
This commit is contained in:
25
app/include/plasp-app/commands/CommandHelp.h
Normal file
25
app/include/plasp-app/commands/CommandHelp.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#ifndef __PLASP_APP__COMMANDS__COMMAND_HELP_H
|
||||
#define __PLASP_APP__COMMANDS__COMMAND_HELP_H
|
||||
|
||||
#include <plasp-app/Command.h>
|
||||
#include <plasp-app/OptionGroups.h>
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Command Help
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
class CommandHelp : public Command<CommandHelp>
|
||||
{
|
||||
public:
|
||||
static constexpr auto Name = "help";
|
||||
static constexpr auto Description = "Display this help message";
|
||||
|
||||
public:
|
||||
int run(int argc, char **argv);
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user