Skip to content

Commit 840c416

Browse files
authored
docs: add double-hyphen flag between npx and the command to run (#1164)
1 parent b6e4c92 commit 840c416

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ To add another hook use `husky add`.
7474
For example:
7575

7676
```shell
77-
npx husky add .husky/commit-msg 'npx --no commitlint --edit "$1"'
77+
npx husky add .husky/commit-msg 'npx --no -- commitlint --edit "$1"'
7878
```
7979

8080
_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 `$
485485
```shell
486486
# .husky/commit-msg (v8)
487487
# ...
488-
npx --no commitlint --edit $1
488+
npx --no -- commitlint --edit $1
489489
# or
490490
yarn commitlint --edit $1
491491
```

0 commit comments

Comments
 (0)