-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Closed
Labels
bounty:$10Bounty applies for fixing this issue (Parse Bounty Program)Bounty applies for fixing this issue (Parse Bounty Program)state:releasedReleased as stable versionReleased as stable versionstate:released-alphaReleased as alpha versionReleased as alpha versionstate:released-betaReleased as beta versionReleased as beta versiontype:bugImpaired feature or lacking behavior that is likely assumedImpaired feature or lacking behavior that is likely assumed
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.
Metadata
Metadata
Assignees
Labels
bounty:$10Bounty applies for fixing this issue (Parse Bounty Program)Bounty applies for fixing this issue (Parse Bounty Program)state:releasedReleased as stable versionReleased as stable versionstate:released-alphaReleased as alpha versionReleased as alpha versionstate:released-betaReleased as beta versionReleased as beta versiontype:bugImpaired feature or lacking behavior that is likely assumedImpaired feature or lacking behavior that is likely assumed