1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

-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

4
red.js
View File

@ -44,6 +44,8 @@ var shortHands = {
"?":["--help"], "?":["--help"],
"p":["--port"], "p":["--port"],
"s":["--settings"], "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"], "t":["--help"],
"u":["--userDir"], "u":["--userDir"],
"v":["--verbose"] "v":["--verbose"]
@ -121,7 +123,7 @@ try {
process.exit(); process.exit();
} }
if (parsedArgs.v) { if (parsedArgs.verbose) {
settings.verbose = true; settings.verbose = true;
} }