Skip to content
This repository has been archived by the owner on May 10, 2021. It is now read-only.

Commit

Permalink
feat(opts): add usage string and --help
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Aug 30, 2017
1 parent 08e6af8 commit efcc48d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ main(parseArgs()).then((details) => {

function parseArgs () {
return yargs
.usage('Install dependencies from an existing package-lock.json')
.option('loglevel', {
type: 'string',
describe: 'log level for npmlog',
Expand All @@ -34,5 +35,7 @@ function parseArgs () {
type: 'string',
describe: 'path to npmrc'
})
.help()
.alias('h', 'help')
.argv
}

0 comments on commit efcc48d

Please sign in to comment.