Class CmdParser.Option
A significant unit of text on the command line.
Namespace: Evergine.Common.Helpers
Assembly: Evergine.Common.dll
Syntax
public class CmdParser.Option
Constructors
Option(string, Func<string, bool>, string)
Initializes a new instance of the CmdParser.Option class.
Declaration
public Option(string name, Func<string, bool> callback, string help)
Parameters
Type | Name | Description |
---|---|---|
string | name | The argument name. |
Func<string, bool> | callback | The callback used to process it. |
string | help | The help description. |
Properties
CallBack
Gets the function pointer that will process this option.
Declaration
public Func<string, bool> CallBack { get; }
Property Value
Type | Description |
---|---|
Func<string, bool> |
Help
Gets the documentation sentence.
Declaration
public string Help { get; }
Property Value
Type | Description |
---|---|
string |
Name
Gets the uppercase text of the argument.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
string |
Raw
Gets or sets raw argument text.
Declaration
public string Raw { get; set; }
Property Value
Type | Description |
---|---|
string |