From f2f939057e7986f1c883432ff4e1397636c945b2 Mon Sep 17 00:00:00 2001 From: John Gee Date: Sun, 9 May 2021 18:41:04 +1200 Subject: [PATCH] Add note about async and multiple hooks --- Readme.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Readme.md b/Readme.md index f787502b0..652e0a3db 100644 --- a/Readme.md +++ b/Readme.md @@ -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