Skip to content

Commit

Permalink
Could be multiple hooks, pluralise
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowspawn authored and abetomo committed Apr 7, 2023
1 parent 5fbf83a commit 321cd76
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/parsing-and-hooks.md
Expand Up @@ -9,7 +9,7 @@ Starting with top-level command (program):
- parse env: look for environment variables (for this command)
- process implied: set any implied option values (for this command)
- if the first arg is a subcommand
- call `preSubcommand` hook
- call `preSubcommand` hooks
- pass remaining arguments to subcommand, and process same way

Once reach final (leaf) command:
Expand All @@ -18,6 +18,6 @@ Once reach final (leaf) command:
- check for conflicting options
- check for unknown options
- process remaining args as command-arguments
- call `preAction` hook
- call `preAction` hooks
- call action handler
- call `postAction` hook
- call `postAction` hooks

0 comments on commit 321cd76

Please sign in to comment.