/// <summary> /// Convenience method for defining a new positional argument. /// </summary> public PositionalArgument AddPositionalArgument(string key, string desc, Argument.OnParseHandler onParse) { var arg = new PositionalArgument { Key = key, Description = desc }; arg.OnParse += onParse; return((PositionalArgument)Definition.AddArgument(arg)); }
/// <summary> /// Convenience method for defining a new positional argument. /// </summary> public PositionalArgument AddPositionalArgument(string key, string desc, Argument.OnParseHandler onParse) { var arg = new PositionalArgument { Key = key, Description = desc }; arg.OnParse += onParse; return (PositionalArgument)Definition.AddArgument(arg); }