(str: string)
| 2 | import type { OptionDef } from './command'; |
| 3 | |
| 4 | function kebabToCamel(str: string): string { |
| 5 | return str.replace(/-([a-z])/g, (_, c: string) => c.toUpperCase()); |
| 6 | } |
| 7 | |
| 8 | /** Extract camelCase flag name from an OptionDef.flag string, e.g. '--max-tokens <n>' → 'maxTokens' */ |
| 9 | function flagKey(def: OptionDef): string | null { |
no outgoing calls
no test coverage detected