Example #1
0
        public string Usageの文字列を生成する(char?sname, string lname, string value, string expression,
                                     CommandOptionKind optionKind, char keyValSeparator, int leftWidth)
        {
            var opt = new ExCommandOption(sname, lname, value, expression, optionKind);

            return(opt.ExToString(keyValSeparator, leftWidth));
        }
Example #2
0
        public int CalculatesColumnWidthUsedInUsage(char?sname, string lname, string value, CommandOptionKind optionKind)
        {
            var opt = new ExCommandOption(sname, lname, value, "", optionKind);

            return(opt.ExNeededLeftColumnLength);
        }