Skip to content

Commit e80defc

Browse files
committed
fix(rate-limit): --help is not a usage, fix #772
1 parent bf39c27 commit e80defc

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

build/.eslintrc.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

plugins/a11y/rate-limit/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ export function apply(ctx: Context) {
6666

6767
let isUsage = true
6868
for (const { name, notUsage } of Object.values(command._options)) {
69-
if (name in options && notUsage) isUsage = false
69+
// --help is not a usage (#772)
70+
if (name in options && (notUsage || name === 'help')) isUsage = false
7071
}
7172

7273
// check usage

0 commit comments

Comments
 (0)