Skip to content

Commit 255e347

Browse files
committed
fix($cli): should output helper when did not input branch
1 parent 4e05091 commit 255e347

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ module.exports = class Core {
2727
.usage('[...branches] [options]')
2828
.option('-r, --remotes', 'Delete remotes branches')
2929
.action((branches, options) => {
30+
if (branches.length === 0) cli.outputHelp()
31+
3032
this.deleteBranch(branches, options)
3133
})
3234

0 commit comments

Comments
 (0)