-v option not enabling verbose mode properly

This commit is contained in:
Nick O'Leary 2017-01-13 00:01:19 +00:00
parent f699516fdb
commit 48ad614441
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
1 changed files with 3 additions and 1 deletions

4
red.js
View File

@ -44,6 +44,8 @@ var shortHands = {
"?":["--help"],
"p":["--port"],
"s":["--settings"],
// As we want to reserve -t for now, adding a shorthand to help so it
// doesn't get treated as --title
"t":["--help"],
"u":["--userDir"],
"v":["--verbose"]
@ -121,7 +123,7 @@ try {
process.exit();
}
if (parsedArgs.v) {
if (parsedArgs.verbose) {
settings.verbose = true;
}