summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Easters <peasters@redhat.com>2017-07-05 15:20:02 -0400
committerPatrick Easters <peasters@redhat.com>2017-07-05 15:20:02 -0400
commitd72d79ea82301dbc5ac575d0e0d0726f91a17b60 (patch)
treee1a54ed6adc9c2663f086fe90b1c1344c9e72b51
parent12cb8e0dc1ba56ede302ed328d689a370334746a (diff)
downloadetherpad-lite-d72d79ea82301dbc5ac575d0e0d0726f91a17b60.zip
Fetch credentials arg from CLI
-rw-r--r--src/node/utils/Cli.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/node/utils/Cli.js b/src/node/utils/Cli.js
index 0c7947e9..9419ed26 100644
--- a/src/node/utils/Cli.js
+++ b/src/node/utils/Cli.js
@@ -34,5 +34,10 @@ for ( var i = 0; i < argv.length; i++ ) {
exports.argv.settings = arg;
}
+ // Override location of credentials.json file
+ if ( prevArg == '--credentials' ) {
+ exports.argv.credentials = arg;
+ }
+
prevArg = arg;
}