Beispiel #1
0
        public FlagItem <string> Flag(string name, string help = "")
        {
            var result = new FlagItem <string>($"{Path}:{name}", name, help);

            Item._flags.Add(result);
            return(result);
        }
Beispiel #2
0
        public FlagItem <T> Flag <T>(string name, string help = "")
        {
            var result = new FlagItem <T>($"{Path}:{name}", name, help, ValueTypeConverter.Convert(typeof(T)));

            Item._flags.Add(result);
            return(result);
        }
        public FlagItem <string> Flag(string name, string help = "")
        {
            var result = new FlagItem <string>(name, name, help);

            _flags.Add(result);
            return(result);
        }