* For enums, log the value as uppercase. * We're going to have an enum for such flags with choices represented * as an `enum` where the keys of the enum will map to the uppercase `choice`.
(snakeCaseName: string, choice: string)
| 18 | * as an `enum` where the keys of the enum will map to the uppercase `choice`. |
| 19 | */ |
| 20 | function formatEnumChoice(snakeCaseName: string, choice: string): string { |
| 21 | return stripUnderscoreBeforeNumber( |
| 22 | `${snakeCaseName}_${choice}`, |
| 23 | ).toUpperCase(); |
| 24 | } |
| 25 | |
| 26 | /** |
| 27 | * Computes telemetry flag usage from parsed arguments and CLI options. |
no test coverage detected