From 33125bce69d2e89cca66a373277a414248217a86 Mon Sep 17 00:00:00 2001 From: Dong-Young Kim <31337.persona@gmail.com> Date: Sun, 19 Jun 2022 11:25:30 +0900 Subject: [PATCH] docs: add double-hyphen flag between npx and the command to run (#1164) --- docs/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/README.md b/docs/README.md index 569abdce8..e5e736990 100644 --- a/docs/README.md +++ b/docs/README.md @@ -74,7 +74,7 @@ To add another hook use `husky add`. For example: ```shell -npx husky add .husky/commit-msg 'npx --no commitlint --edit "$1"' +npx husky add .husky/commit-msg 'npx --no -- commitlint --edit "$1"' ``` _For Windows users, if you see the help message when running `npx husky add ...`, try `node node_modules/husky/lib/bin add ...` instead. This isn't an issue with husky code._ @@ -485,7 +485,7 @@ Previous `HUSKY_GIT_PARAMS` environment variable is replaced by native params `$ ```shell # .husky/commit-msg (v8) # ... -npx --no commitlint --edit $1 +npx --no -- commitlint --edit $1 # or yarn commitlint --edit $1 ```