getCliOptName method

String getCliOptName(
  1. CliOptCaseMode caseMode, {
  2. bool withPrefix = false,
})

Removes all unwanted characters from the given string and convert case depending on mode specified

Implementation

String getCliOptName(CliOptCaseMode caseMode, {bool withPrefix = false}) =>
    shrinkCliOptName(withPrefix: withPrefix).toLowerCliOptName(caseMode);