CliOptName extension
Extension to String for command-line option name manipulations
- on
Methods
-
addPrefix(
{bool isPositive = true}) → String -
Available on String, provided by the CliOptName extension
Prepend option name with prefix depending on flagisPositive
-
getCliOptName(
CliOptCaseMode caseMode, {bool withPrefix = false}) → String -
Available on String, provided by the CliOptName extension
Removes all unwanted characters from the given string and convert case depending on mode specified -
getCliOptStopMode(
) → CliOptStopMode -
Available on String, provided by the CliOptName extension
Checks whether the given string represents a kind of a flag indicating there is no more option name to expect -
isCliOptNameShort(
) → bool -
Available on String, provided by the CliOptName extension
Returns true of the string represents potential short option name -
isCliOptNameValid(
[CliOptStopMode stopMode = CliOptStopMode.none]) → bool -
Available on String, provided by the CliOptName extension
Checks whether the string can be treated as an option name -
isCliOptPositive(
) → bool -
Available on String, provided by the CliOptName extension
Returns true if the string starts with prefix -
isCliOptStopMode(
) → bool -
Available on String, provided by the CliOptName extension
Returns true if the string represents any kind of an 'end-of-options' -
isCliSubCmdValid(
) → bool -
Available on String, provided by the CliOptName extension
Checks whether the string can be treated as an option name -
shrinkCliOptName(
{bool withPrefix = false}) → String -
Available on String, provided by the CliOptName extension
Removes all unwanted characters from the given string -
splitCliOptNameValue(
) → List< String> -
Available on String, provided by the CliOptName extension
Breaks the string into an option name and value (without unbundling) -
toFullCliOptName(
bool isPositive) → String -
Available on String, provided by the CliOptName extension
Prepends option name with prefix depending onisPositive
-
toLowerCliOptName(
CliOptCaseMode caseMode) → String -
Available on String, provided by the CliOptName extension
Converts the string to lower depending on case mode
Static Properties
- negPrefix → String
-
Available on String, provided by the CliOptName extension
Constant for the standard negative option name prefixfinal - prefix → String
-
Available on String, provided by the CliOptName extension
Constant for the standard option name prefixfinal