From 1c2069c0cb3c01ec116444d20ff7069d65fae3a0 Mon Sep 17 00:00:00 2001 From: Nick Doiron Date: Sun, 16 Sep 2018 14:53:18 -0400 Subject: [PATCH] fix issues with npm and from-source installs --- cli.js | 10 +++++----- package.json | 5 +++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/cli.js b/cli.js index 4ad6cbe..6fd77b3 100755 --- a/cli.js +++ b/cli.js @@ -26,11 +26,11 @@ const path = require("path"); const compiler = require("./src/compiler"); +const version = require("./package").version; + const argv = require("yargs") - .version(function() { - return require("./package").version; - }) - .usage("jaz -s [input source circuit file] -o [output definition circuit file]") + .version(version) + .usage("circom -s [input source circuit file] -o [output definition circuit file]") .alias("s", "source") .alias("o", "output") .require(["s","o"]) @@ -40,7 +40,7 @@ const argv = require("yargs") This program comes with ABSOLUTELY NO WARRANTY; This is free software, and you are welcome to redistribute it under certain conditions; see the COPYING file in the official - repo directory at https://github.com/iden3/jaz `) + repo directory at https://github.com/iden3/circom `) .argv; const fullFileName = path.resolve(process.cwd(), argv.source); diff --git a/package.json b/package.json index 35b8a06..d11d178 100644 --- a/package.json +++ b/package.json @@ -30,13 +30,14 @@ }, "dependencies": { "big-integer": "^1.6.32", - "optimist": "^0.6.1" + "optimist": "^0.6.1", + "yargs": "^12.0.2" }, "devDependencies": { "chai": "^4.1.2", "eslint": "^5.0.1", "eslint-plugin-mocha": "^5.0.0", "jison": "^0.4.18", - "zksnark": "0.0.6" + "zksnark": "0.0.10" } }