Merge pull request #7627 from jamesgeorge007/hotfix/fixup-usage-info

fix(cli): Fixup usage information
This commit is contained in:
James George 2019-07-30 20:55:31 +05:30 committed by GitHub
commit 8f57c6edcc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,7 +74,10 @@ if (process.argv[1].includes('getstorybook')) {
process.exit(1);
});
program.version(pkg.version).parse(process.argv);
program
.usage('<command> [options]')
.version(pkg.version)
.parse(process.argv);
if (!program.args.length) {
program.help();