52 return "Prints version information.";
58 return "Prints version information.";
67 static void Test_VersionCommand_DontAcceptArgs()
70 vector<string> dummyArguments;
78 UNITTEST(Test_VersionCommand_DontAcceptArgs);
virtual string GetLongDescription() const
Returns a long description/help message for the command.
virtual void ShowDebugMessage(const string &msg)=0
Shows a debug message.
VersionCommand()
Constructs a VersionCommand.
static string Version()
Returns the GXemul version string.
#define UNITTESTS(class)
Helper for unit test case execution.
virtual bool Execute(GXemul &gxemul, const vector< string > &arguments)
Executes the command on a given GXemul instance.
virtual ~VersionCommand()
virtual string GetShortDescription() const
Returns a short (one-line) description of the command.
A Command is a named function, executed by the CommandInterpreter.
static void Assert(const string &strFailMessage, bool condition)
Asserts that a boolean condition is correct.
A Command which prints the version of the application.
UI * GetUI()
Gets a pointer to the GXemul instance' active UI.
const string & GetArgumentFormat() const
Gets the argument format for the command.
#define UNITTEST(functionname)
Helper for unit test case execution.