output usage info if no command is given

This commit is contained in:
Dan Motzenbecker 2015-10-03 21:19:46 -04:00
parent 35f5e6cd52
commit 76c23627a2
1 changed files with 4 additions and 1 deletions

View File

@ -290,4 +290,7 @@ unless semver.satisfies process.version[1...], nodeVersion
You have #{process.version[1...]}
"""
cli.parse process.argv
if process.argv.length <= 2
cli.outputHelp()
else
cli.parse process.argv