Skip to content

Commit

Permalink
Merge pull request #455 from danger/fix_args
Browse files Browse the repository at this point in the history
Only run the default runner when there are no args (e.g. no calls to the subcommands)
  • Loading branch information
orta committed Dec 28, 2017
2 parents 46b7716 + 3d0e596 commit c9c06b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/commands/danger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,6 @@ program
setSharedArgs(program).parse(process.argv)

const app = (program as any) as SharedCLI
runRunner(app)
if (app.args.length === 0) {
runRunner(app)
}

0 comments on commit c9c06b5

Please sign in to comment.