Skip to content

Commit 321cd76

Browse files
shadowspawnabetomo
authored andcommitted
Could be multiple hooks, pluralise
1 parent 5fbf83a commit 321cd76

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/parsing-and-hooks.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Starting with top-level command (program):
99
- parse env: look for environment variables (for this command)
1010
- process implied: set any implied option values (for this command)
1111
- if the first arg is a subcommand
12-
- call `preSubcommand` hook
12+
- call `preSubcommand` hooks
1313
- pass remaining arguments to subcommand, and process same way
1414

1515
Once reach final (leaf) command:
@@ -18,6 +18,6 @@ Once reach final (leaf) command:
1818
- check for conflicting options
1919
- check for unknown options
2020
- process remaining args as command-arguments
21-
- call `preAction` hook
21+
- call `preAction` hooks
2222
- call action handler
23-
- call `postAction` hook
23+
- call `postAction` hooks

0 commit comments

Comments
 (0)