Skip to content

Commit 10ab760

Browse files
author
Dom Harrington
committed
Making sure rdme on it's own produces the help output
Think this broke when i added the subcommand stuff
1 parent db80802 commit 10ab760

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ process.env.NODE_CONFIG_DIR = configDir;
1515

1616
const { version } = require('./package.json');
1717

18-
function load(command = 'help', subcommand = '') {
18+
function load(command = '', subcommand = '') {
1919
const file = path.join(__dirname, 'lib', command, subcommand);
2020
try {
2121
// eslint-disable-next-line global-require, import/no-dynamic-require

rdme.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const parseArgs = require('minimist')(process.argv.slice(2), {
1313
},
1414
});
1515

16-
require('./cli')(parseArgs._[0], parseArgs._.slice(1), parseArgs)
16+
require('./cli')(parseArgs._[0] || 'help', parseArgs._.slice(1), parseArgs)
1717
.then(msg => {
1818
if (msg) console.log(msg);
1919
process.exit();

0 commit comments

Comments
 (0)