Add help if no command was issued.

This commit is contained in:
Sergio Díaz 2017-03-07 16:48:56 -06:00
parent c4adfeaf75
commit 5a1f42827f
1 changed files with 1 additions and 2 deletions

View File

@ -1,5 +1,4 @@
#!/usr/bin/env node
const program = require('commander');
const Beau = require('../beau');
const yaml = require('js-yaml');
@ -28,7 +27,7 @@ const beau = new Beau(config);
if (typeof program.list === 'undefined' &&
typeof program.request === 'undefined') {
program.help();
}
if (program.list) {