Struct CommandFlagInfo
- Namespace
- Uncreated.Warfare.Interaction.Commands
- Assembly
- Uncreated.Warfare.dll
Provides basic information about command flags.
public readonly struct CommandFlagInfo
- Inherited Members
Constructors
CommandFlagInfo(string, int, int)
Provides basic information about command flags.
public CommandFlagInfo(string name, int dashCount, int argumentPosition)
Parameters
namestringdashCountintNumber of dashes, either 1 or 2.
argumentPositionintThe argument before the flag, where 1 is the first argument. A value of zero indicates this flag was before the first argument.
Fields
ArgumentPosition
The argument before the flag, where 1 is the first argument. A value of zero indicates this flag was before the first argument.
public readonly int ArgumentPosition
Field Value
Remarks
Note that there can be more than one flag with the same argument position.
DashCount
Number of dashes, either 1 or 2.
public readonly int DashCount
Field Value
FlagName
Name of the flag not including the dashes.
public readonly string FlagName
Field Value
Methods
ToString()
Returns the flag as it was entered.
public override string ToString()