/** * Converts a camelCase string to a flag case string. * * @param key The camelCase string. * @returns The flag case string. */ export function toFlagCase(key: string) { return `--${key.replace(/[A-Z]/g, (match) => `-${match.toLowerCase()}`)}`; }