CCommand

Command arguments.

Type: Reference type

Methods

Declaration Description
int ArgC() const Gets the number of arguments.
string GetCommandString() const Gets the entire command as a string.
string GetArgumentsString() const Gets all arguments as a single string.
string Arg(const int iIndex) const Gets the argument by index.
string opIndex(const int iIndex) const Gets the argument by index.
string FindArg(const string& in szArgument) const Find a value for a given argument. If the argument does not exist or has no value, an empty string is returned. Otherwise, returns the value.
int FindIntArg(const string& in szArgument, const int iDefault = 0) const Find an int value for a given argument. Returns iDefault if no such argument exists, or no value exists for it. Otherwise, returns the value, converted to an int