public static bool NextIsFlag(this Queue <string> queue) { return(InputParser.IsFlag(queue.Peek())); }
public static bool NextIsFlagFor(this Queue <string> queue, PropertyInfo property) { return(InputParser.IsFlagFor(queue.Peek(), property)); }
public override string ToUsageDescription() { var flagAliases = InputParser.ToFlagAliases(_property); return("[{0} [<{1}1 {1}2 {1}3 ...>]]".ToFormat(flagAliases, _property.Name.ToLower().TrimEnd('f', 'l', 'a', 'g'))); }
private static bool isMultiArg(string arg) { // regular short args look like '-a', multi-args are '-abc' which is really '-a -b -c' return(InputParser.IsShortFlag(arg) && arg.Length > 2); }
public static bool NextIsFlag(this Queue <string> queue, PropertyInfo property) { return(queue.Peek().ToLower() == InputParser.ToFlagName(property)); }
public override string ToUsageDescription() { return("[{0} <{1}1 {1}2 {1}3 ...>]".ToFormat(InputParser.ToFlagName(_property), _property.Name.ToLower())); }