public bool HelpRequested { get; set; }
Public Property HelpRequested As Boolean
Get
Set
Dim instance As CommandLineParser
Dim value As Boolean
value = instance.HelpRequested
instance.HelpRequested = value
public:
property bool HelpRequested {
bool get ();
void set (bool value);
}
Check this property after calling the Parse(String) method or one of its overloads to see if usage help should be displayed.
This property will always be if the Parse(String) method returned a non- value.
This property will always be if the Parse(String) method threw a CommandLineArgumentException, or if an argument used CancelModeAbort with the CommandLineArgumentAttributeCancelParsing property or the ArgumentParsed event.
If an argument that is defined by a method (ArgumentKindMethod) cancels parsing by returning CancelModeAbort or from the method, this property is not automatically set to . Instead, the method should explicitly set the HelpRequested property if it wants usage help to be displayed.
[CommandLineArgument]
public static CancelMode MethodArgument(CommandLineParser parser)
{
parser.HelpRequested = true;
return CancelMode.Abort;
}