* Convert string from kebab-case to camelCase. * * @param {string} str * @return {string} * @private
(str)
| 314 | */ |
| 315 | |
| 316 | function camelcase(str) { |
| 317 | return str.split('-').reduce((str, word) => { |
| 318 | return str + word[0].toUpperCase() + word.slice(1); |
| 319 | }); |
| 320 | } |
| 321 | |
| 322 | /** |
| 323 | * Split the short and long flag out of something like '-m,--mixed <value>' |