Skip to content

Commit

Permalink
docs: add double-hyphen flag between npx and the command to run (#1164)
Browse files Browse the repository at this point in the history
  • Loading branch information
pers0n4 authored Jun 19, 2022
1 parent b6e4c92 commit 840c416
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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._
Expand Down Expand Up @@ -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
```
Expand Down

0 comments on commit 840c416

Please sign in to comment.