From de42224ce58edc32594525f073d1a89b4cb2a47e Mon Sep 17 00:00:00 2001 From: chee Date: Thu, 21 Feb 2019 01:09:55 +0000 Subject: [PATCH] demand that --file be a string --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index efb4aa6..1f6edfb 100755 --- a/index.js +++ b/index.js @@ -6,11 +6,13 @@ let commandDir = path.resolve(__dirname, "commands") yargs .option("file", { - describe: "the package-lock.json to operate on, use - or nothing for stdin" + describe: "the package-lock.json to operate on", + type: "string" }) .commandDir(commandDir) .demandCommand() .help() .epilogue("💖 🐕") + .showHelpOnFail(false) .strict() .argv