Skip to main content

ConsoleOption

A class in Root.Township, the global namespace.

A named option with an id and usage text. Nothing in this build creates one.

Constructors​

MemberWhat it is
ConsoleOption(string name, int optionId, string usage)Creates a ConsoleOption from name, optionId and usage.

Properties​

MemberWhat it is
string Name { get; private set; }Option name.
int OptionId { get; private set; }Numeric id.
string Usage { get; private set; }Usage text.

Methods​

MemberWhat it is
void PrintHelp()Logs the usage text.