From 83307d44b62b57120f2a584e7d6e7c68cd34dde0 Mon Sep 17 00:00:00 2001 From: slayerpart Date: Wed, 6 Sep 2017 10:35:48 +0200 Subject: [PATCH] run strangelog without any args behaves like strangelog --help --- src/cli/cli.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cli/cli.js b/src/cli/cli.js index 8c482da..0ea5671 100644 --- a/src/cli/cli.js +++ b/src/cli/cli.js @@ -16,6 +16,9 @@ import runGenerate from './commands/generate'; import runMigrate from './commands/migrate'; export default function cli(args: string[]) { + if (!args.length) + args = ['--help']; + yargs(args) .command( 'add',