mirror of https://github.com/Seich/Beau.git
Add help if no command was issued.
This commit is contained in:
parent
c4adfeaf75
commit
5a1f42827f
3
bin/beau
3
bin/beau
|
|
@ -1,5 +1,4 @@
|
||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
const program = require('commander');
|
const program = require('commander');
|
||||||
const Beau = require('../beau');
|
const Beau = require('../beau');
|
||||||
const yaml = require('js-yaml');
|
const yaml = require('js-yaml');
|
||||||
|
|
@ -28,7 +27,7 @@ const beau = new Beau(config);
|
||||||
|
|
||||||
if (typeof program.list === 'undefined' &&
|
if (typeof program.list === 'undefined' &&
|
||||||
typeof program.request === 'undefined') {
|
typeof program.request === 'undefined') {
|
||||||
|
program.help();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (program.list) {
|
if (program.list) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue