use lowercase for loglevel

This commit is contained in:
Jonathan Rainville 2018-10-16 10:53:07 -04:00 committed by Pascal Precht
parent 0ef879d6a6
commit df218397cd
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 2 additions and 2 deletions

View File

@ -262,7 +262,7 @@ class Cmd {
.option('-c , --coverage', __('generate a coverage report after running the tests (vm only)'))
.option('--nobrowser', __('do not start browser after coverage report is generated'))
.option('--locale [locale]', __('language to use (default: en)'))
.option('--logLevel [loglevel]', __('level of logging to display') + ' ["error", "warn", "info", "debug", "trace"]', /^(error|warn|info|debug|trace)$/i, 'warn')
.option('--loglevel [loglevel]', __('level of logging to display') + ' ["error", "warn", "info", "debug", "trace"]', /^(error|warn|info|debug|trace)$/i, 'warn')
.option('--solc', __('run only solidity tests'))
.description(__('run tests'))
.action(function(file, options) {
@ -280,7 +280,7 @@ class Cmd {
process.exit(1);
}
i18n.setOrDetectLocale(options.locale);
embark.runTests({file, solc:options.solc, logLevel: options.logLevel, gasDetails: options.gasDetails,
embark.runTests({file, solc:options.solc, logLevel: options.loglevel, gasDetails: options.gasDetails,
node: options.node, coverage: options.coverage, noBrowser: options.nobrowser});
});
}