Positional arguments are those where a value is specified without its key; the order of argument values identify the positional argument.
Inheritance: ValueArgument
示例#1
0
        /// <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));
        }
示例#2
0
文件: UI.cs 项目: newbish/hfmcmd
 /// <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);
 }