CliOptDefList extension
Extension methods to manipulate option definitions lists
Methods
-
findCliOptDef(
String? name, {bool canThrow = false}) → CliOptDef? -
Available on List<
Find specific option definition byCliOptDef> , provided by the CliOptDefList extensionname
-
getCliOptDefsLongNames(
{bool isNegative = false}) → List< String> -
Available on List<
Get long names of all option definitions (positive or negative)CliOptDef> , provided by the CliOptDefList extension -
getCliOptDefsLongSubNames(
{bool isNegative = false}) → List< String> -
Available on List<
Get long sub-names of all option definitions (positive or negative)CliOptDef> , provided by the CliOptDefList extension -
getCliOptDefsShortNames(
) → List< String> -
Available on List<
Get short names of all option definitionsCliOptDef> , provided by the CliOptDefList extension -
getCliOptDefsShortSubNames(
) → List< String> -
Available on List<
Get short sub-names of all option definitionsCliOptDef> , provided by the CliOptDefList extension -
validateCliOptDefs(
List< String> longNames, List<String> longSubNames, List<String> shortNames, List<String> shortSubNames) → void -
Available on List<
Checks there is no long option or long sub-option consisting of short options and short sub-optionsCliOptDef> , provided by the CliOptDefList extension
Throws an exception when such match found
Useful solely for the unit testing or a rare sanity check, as in release mode, the parser simply prefers long options over the bundled short ones
Static Methods
-
cliOptDefsFromString(
String optDefStr, CliOptCaseMode caseMode) → List< CliOptDef> -
Available on List<
Create list from a single option definitions stringCliOptDef> , provided by the CliOptDefList extension