Closed
Description
Hello guys,
I test my app with config :
--appId xxx --masterKey xxx --databaseURI mongodb://xxx --maxLogFiles 20
It's right.
but,if I write this like :
--appId xxx --masterKey xxx --databaseURI mongodb://xxx --maxLogFiles 20d
It's wrong.
undefined:1
20d
^
SyntaxError: Unexpected token d in JSON at position 2
I find the code in follow file.
./lib/Options/parsers.js
function objectParser(opt) {
if (typeof opt == 'object') {
return opt;
}
return JSON.parse(opt);
}
I hope can fix it,Thank you.