Ejemplo n.º 1
0
        public static OptionMap CreateMap(object target, CommandLineParserSettings settings)
        {
            var       list = ReflectionUtil.RetrieveFieldList <OptionAttribute>(target);
            OptionMap map  = new OptionMap(list.Count, settings);

            foreach (Pair <FieldInfo, OptionAttribute> pair in list)
            {
                map[pair.Right.UniqueName] = new OptionInfo(pair.Right, pair.Left);
            }

            return(map);
        }
Ejemplo n.º 2
0
        public static OptionMap CreateMap(object target, CommandLineParserSettings settings)
        {
            var list = ReflectionUtil.RetrieveFieldList<OptionAttribute>(target);
            OptionMap map = new OptionMap(list.Count, settings);

            foreach (Pair<FieldInfo, OptionAttribute> pair in list)
            {
                map[pair.Right.UniqueName] = new OptionInfo(pair.Right, pair.Left);
            }

            return map;
        }
Ejemplo n.º 3
0
 public abstract ParserState Parse(IArgumentEnumerator argumentEnumerator, OptionMap map, object options);
Ejemplo n.º 4
0
 public abstract ParserState Parse(IArgumentEnumerator argumentEnumerator, OptionMap map, object options);