Example #1
0
 protected ObjectParse(SchemaInfo schemaInfo, ArgsParser argsParser, string flag)
 {
     SchemaInfo = schemaInfo;
     ArgsParser = argsParser;
     Value      = GetArgsValue(flag);
     Flag       = flag;
 }
Example #2
0
        /// <summary>
        /// 获取默认值
        /// </summary>
        /// <param name="flag"></param>
        /// <returns></returns>
        private string GetArgsValue(string flag)
        {
            var value = ArgsParser.GetValue(flag, out bool exist);

            Exist = exist;
            return(value);
        }
Example #3
0
 public StringListParse(SchemaInfo schemaInfo, ArgsParser argsParser, string flag) : base(schemaInfo, argsParser, flag)
 {
 }
Example #4
0
 public BoolParse(SchemaInfo schemaInfo, ArgsParser argsParser, string flag) : base(schemaInfo, argsParser, flag)
 {
 }
Example #5
0
 public Args(ArgsParser argsParser, ArgsSchema argsSchema)
 {
     ArgsParser = argsParser;
     ArgsSchema = argsSchema;
 }
Example #6
0
 public IntListParse(SchemaInfo info, ArgsParser argsParser, string flag) : base(info, argsParser, flag)
 {
 }