From 1e0e7abdf854de26b2aedfa9cb8a5183c8b4f9d6 Mon Sep 17 00:00:00 2001 From: alwx Date: Mon, 29 May 2017 18:03:23 +0300 Subject: [PATCH] Custom option: dappUrl (3.2.2) --- cli.js | 3 ++- package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cli.js b/cli.js index 940ca8c..d610d82 100755 --- a/cli.js +++ b/cli.js @@ -75,7 +75,7 @@ function getCurrentPackageData() { obj["name"] = json.name; obj["whisper-identity"] = "dapp-" + fromAscii(json.name); - obj["dapp-url"] = json["dapp-url"] || json["bot-url"]; + obj["dapp-url"] = json["dapp-url"] || json["bot-url"] || cli.dappUrl; if (!obj["dapp-url"]) { console.error(chalk.red("Neither 'dapp-url' nor 'bot-url' have been found in your package.json file.")); return null; @@ -304,4 +304,5 @@ cli.on("*", function(command) { cli.version(pkgJson.version) .option("--ip [ip]", "IP address of your device") + .option("--dappUrl [url]", "Custom DApp URL (overrides the one from the package.json)") .parse(process.argv); diff --git a/package.json b/package.json index ae233e0..6696ce6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "status-dev-cli", - "version": "3.2.1", + "version": "3.2.2", "description": "CLI for Status", "main": "index.js", "bin": {