CliOptList extension
Extension methods to manipulate command-line arguments. Returns true if more values can be added, or false otherwise.
Methods
-
addCliOpt(
List< CliOptDef> optDefs, String? name, {bool isPositive = true, String? value, int argNo = -1}) → bool -
Available on List<
Add new option and/or value to the list of parsed optionsCliOpt> , provided by the CliOptList extension -
findCliOptByName(
String? name) → CliOpt? -
Available on List<
Finds existing argument by option name (no prefix)CliOpt> , provided by the CliOptList extension -
getDateValue(
String name) → DateTime? -
Available on List<
Get string valueCliOpt> , provided by the CliOptList extension -
getDateValues(
String name) → List< DateTime> -
Available on List<
Get string valuesCliOpt> , provided by the CliOptList extension -
getGlobValue(
String name, {GlobOpt? options}) → Glob? -
Available on List<
Get Glob valueCliOpt> , provided by the CliOptList extension -
getGlobValues(
String name, {GlobOpt? options}) → List< Glob> -
Available on List<
Get Glob valuesCliOpt> , provided by the CliOptList extension -
getIntValue(
String name, {int radix = 10}) → int? -
Available on List<
Get int valueCliOpt> , provided by the CliOptList extension -
getIntValues(
String name, {int radix = 10}) → List< int> -
Available on List<
Get int valuesCliOpt> , provided by the CliOptList extension -
getNumValue(
String name) → num -
Available on List<
Get num valueCliOpt> , provided by the CliOptList extension -
getNumValues(
String name) → List< num> -
Available on List<
Get num valuesCliOpt> , provided by the CliOptList extension -
getRegExpValue(
String name, {RegExpOpt? options}) → RegExp? -
Available on List<
Get RegExp valueCliOpt> , provided by the CliOptList extension -
getRegExpValues(
String name, {RegExpOpt? options}) → List< RegExp> -
Available on List<
Get RegExp valuesCliOpt> , provided by the CliOptList extension -
getStrValue(
String name) → String? -
Available on List<
Get string valueCliOpt> , provided by the CliOptList extension -
getStrValues(
String name) → List< String> -
Available on List<
Get string valuesCliOpt> , provided by the CliOptList extension -
getValue(
String name, String typeName, CliOptValueConverter? converter, {dynamic param}) → dynamic -
Available on List<
Get abstract single valueCliOpt> , provided by the CliOptList extension -
getValues(
String name, String typeName, CliOptValueConverter? converter, {dynamic param}) → List -
Available on List<
Get abstract valuesCliOpt> , provided by the CliOptList extension -
isSet(
String name) → bool -
Available on List<
Get the flagCliOpt> , provided by the CliOptList extension -
toSimpleMap(
) → Map< String, List< String> > -
Available on List<
Converter: to numeric valueCliOpt> , provided by the CliOptList extension -
validateValueCounts(
) → void -
Available on List<
Validate the number of values for each optionCliOpt> , provided by the CliOptList extension
Static Methods
-
toDateValue(
CliOptDef optDef, String value, {dynamic param}) → DateTime? -
Available on List<
Converter: to date/time valueCliOpt> , provided by the CliOptList extension -
toGlobValue(
CliOptDef optDef, String value, {dynamic param}) → Glob? -
Available on List<
Converter: to Glob valueCliOpt> , provided by the CliOptList extension -
toIntValue(
CliOptDef optDef, String value, {dynamic param}) → int? -
Available on List<
Converter: to integer valueCliOpt> , provided by the CliOptList extension -
toNumValue(
CliOptDef optDef, String value, {dynamic param}) → num? -
Available on List<
Converter: to numeric valueCliOpt> , provided by the CliOptList extension -
toRegExpValue(
CliOptDef optDef, String value, {dynamic param}) → RegExp? -
Available on List<
Converter: to RegExp valueCliOpt> , provided by the CliOptList extension