Custom option: dappUrl (3.2.2)

This commit is contained in:
alwx
2017-05-29 18:03:23 +03:00
parent dad6053c27
commit 1e0e7abdf8
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -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);
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "status-dev-cli",
"version": "3.2.1",
"version": "3.2.2",
"description": "CLI for Status",
"main": "index.js",
"bin": {