Skip to content

Commit fd8562e

Browse files
feat(progamableApi): CMD options can be passed programatically now
Signed-off-by: Marc Bornträger <[email protected]>
1 parent 5ee386b commit fd8562e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/commands/set-default-argv.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,10 @@ module.exports = function (internals, isModule) {
9898
.describe('log-level', 'Set the log-level, for example sql|warn')
9999
.string('log-level');
100100
} else {
101+
var _internalsArgv = Object.assign(defaultConfig, internals.cmdOptions);
101102
internals.argv = {
102103
get argv () {
103-
return defaultConfig;
104+
return _internalsArgv;
104105
}
105106
};
106107
}

0 commit comments

Comments
 (0)