Skip to content

Commit

Permalink
feat(progamableApi): CMD options can be passed programatically now
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Bornträger <marc.borntraeger@gmail.com>
  • Loading branch information
BorntraegerMarc authored and wzrdtales committed Mar 21, 2018
1 parent d87a734 commit 69d7605
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/commands/set-default-argv.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,10 @@ module.exports = function (internals, isModule) {
.describe('log-level', 'Set the log-level, for example sql|warn')
.string('log-level');
} else {
var _internalsArgv = Object.assign(defaultConfig, internals.cmdOptions);
internals.argv = {
get argv () {
return defaultConfig;
return _internalsArgv;
}
};
}
Expand Down

0 comments on commit 69d7605

Please sign in to comment.