Skip to content

Commit

Permalink
demand that --file be a string
Browse files Browse the repository at this point in the history
  • Loading branch information
chee committed Feb 21, 2019
1 parent ea2c2b9 commit de42224
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Expand Up @@ -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

0 comments on commit de42224

Please sign in to comment.