Skip to content

Commit

Permalink
Add note about async and multiple hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowspawn committed May 9, 2021
1 parent 4757b94 commit f2f9390
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Readme.md
Expand Up @@ -574,6 +574,8 @@ program
});
```
The callback hook can be `async`, in which case you call `.parseAsync` rather than `.parse`. You can add multiple hooks per event.
The supported events are:
- `beforeAction`: called before action handler for this command and its subcommands
Expand Down

0 comments on commit f2f9390

Please sign in to comment.