Showing list of available commands in help message.

This commit is contained in:
2017-10-14 01:20:26 +02:00
parent d20b30d34d
commit 0d5245b48b
12 changed files with 216 additions and 108 deletions

View 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

View File

@@ -10,11 +10,13 @@
//
////////////////////////////////////////////////////////////////////////////////////////////////////
class CommandNormalize : public Command<OptionGroupBasic, OptionGroupOutput, OptionGroupParser>
class CommandNormalize : public Command<CommandNormalize, OptionGroupBasic, OptionGroupOutput, OptionGroupParser>
{
public:
CommandNormalize();
static constexpr auto Name = "normalize";
static constexpr auto Description = "Normalize PDDL to plasps custom PDDL format";
public:
int run(int argc, char **argv);
};

View File

@@ -10,11 +10,13 @@
//
////////////////////////////////////////////////////////////////////////////////////////////////////
class CommandTranslate : public Command<OptionGroupBasic, OptionGroupOutput, OptionGroupParser>
class CommandTranslate : public Command<CommandTranslate, OptionGroupBasic, OptionGroupOutput, OptionGroupParser>
{
public:
CommandTranslate();
static constexpr auto Name = "translate";
static constexpr auto Description = "Translate PDDL and SAS to ASP";
public:
int run(int argc, char **argv);
};

View File

@@ -10,11 +10,13 @@
//
////////////////////////////////////////////////////////////////////////////////////////////////////
class CommandVersion : public Command<>
class CommandVersion : public Command<CommandVersion>
{
public:
CommandVersion();
static constexpr auto Name = "version";
static constexpr auto Description = "Display version information";
public:
int run(int argc, char **argv);
};