Skip to content

Commit

Permalink
fix($cli): should output helper when did not input branch
Browse files Browse the repository at this point in the history
  • Loading branch information
2nthony committed Jun 22, 2019
1 parent 4e05091 commit 255e347
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})

Expand Down

0 comments on commit 255e347

Please sign in to comment.