From 255e3470878eaeb58eb8de5543d62add8235aa6c Mon Sep 17 00:00:00 2001 From: evillt Date: Sat, 22 Jun 2019 11:01:24 +0800 Subject: [PATCH] fix($cli): should output helper when did not input branch --- lib/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/index.js b/lib/index.js index 5331716..ae39573 100644 --- a/lib/index.js +++ b/lib/index.js @@ -27,6 +27,8 @@ module.exports = class Core { .usage('[...branches] [options]') .option('-r, --remotes', 'Delete remotes branches') .action((branches, options) => { + if (branches.length === 0) cli.outputHelp() + this.deleteBranch(branches, options) })