Skip to content

Commit 69bf617

Browse files
author
Olumide Falomo
committed
Display help output
1 parent 2b9c827 commit 69bf617

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

bin/docker-readme

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env node
22

33
const program = require('commander');
4-
const chalk = require('chalk');
54

65
const pkg = require('../package');
76
const cli = require('../src')
@@ -42,8 +41,6 @@ program
4241
//
4342
})
4443

45-
program.help();
46-
4744
program.parse(process.argv)
4845

4946
const help = `
@@ -55,5 +52,9 @@ const help = `
5552
`;
5653

5754
program.on('--help', () => {
58-
console.log(chalk.blue(help));
55+
console.log(help);
5956
});
57+
58+
if (!program.args.length) {
59+
program.help();
60+
}

0 commit comments

Comments
 (0)