We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
formatKey
convertValue
argv2Object
1 parent 2915389 commit c75e8f2Copy full SHA for c75e8f2
1 file changed
src/argv2Object.mjs
@@ -82,8 +82,8 @@ const argv2Object = (unixmode = false) => {
82
83
const entries = [...argumentsv].map(argumentv => {
84
const [k, v] = argumentv.split('=');
85
- const key = k.replace(/^-{1,2}/, '').replace(/-/g, '_');
86
- const value = v === undefined ? true : v;
+ const key = formatKey(k, 'snakecase');
+ const value = convertValue(v);
87
return [key, value];
88
});
89
0 commit comments