diff --git a/Readme.md b/Readme.md index 2684bcdd9..f787502b0 100644 --- a/Readme.md +++ b/Readme.md @@ -26,7 +26,7 @@ Read this in other languages: English | [简体中文](./Readme_zh-CN.md) - [Custom argument processing](#custom-argument-processing) - [Action handler](#action-handler) - [Stand-alone executable (sub)commands](#stand-alone-executable-subcommands) - - [Life cycle hooks](#life-cycle-hooks) + - [Life cycle hooks](#life-cycle-hooks) - [Automated help](#automated-help) - [Custom help](#custom-help) - [Display help from code](#display-help-from-code) @@ -555,11 +555,11 @@ program.parse(process.argv); If the program is designed to be installed globally, make sure the executables have proper modes, like `755`. -## Life cycle hooks +### Life cycle hooks You can add callback hooks to a command for life cycle events. -Example file: [hook](./examples/hook.js) +Example file: [hook.js](./examples/hook.js) ```js program