private bool IsThisOption(string arg)
{
if (arg != null && arg != string.Empty)
{
arg = arg.TrimStart('-', '/');
if (VBCStyleBoolean)
arg = arg.TrimEnd('-', '+');
return (arg == ShortForm || arg == LongForm || arg == AlternateForm);
}
return false;
}
private bool IsAlternate(string compoundArg) { OptionDetails next = NextAlternate; while (next != null) { if (next.IsThisOption(compoundArg)) { return(true); } next = next.NextAlternate; } return(false); }