Class CmdParser.Option
A unit of significant text on the command line.
Inherited Members
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 sentence. |
Properties
CallBack
Gets the function pointer will process this option.
Declaration
public Func<string, bool> CallBack { get; }
Property Value
Type | Description |
---|---|
Func<string, bool> |
Help
Gets the documentation senstence.
Declaration
public string Help { get; }
Property Value
Type | Description |
---|---|
string |
Name
Gets argument uppercase text.
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 |