Skip to content

--accept doesn't accept the same values as --cache-exclude-status #1769

@katexochen

Description

@katexochen
  --cache-exclude-status <CACHE_EXCLUDE_STATUS>
      A list of status codes that will be ignored from the cache

      The following exclude range syntax is supported: [start]..[[=]end]|code. Some valid
      examples are:

      - 429 (excludes the 429 status code only)
      - 500.. (excludes any status code >= 500)

looks like this should work

$ lychee -- --config tools/lychee/config.toml --cache --cache-exclude-status '500..' .
warning: Git tree '/home/katexochen/edgelesssys/contrast' is dirty
error: invalid value '500..' for '--cache-exclude-status <CACHE_EXCLUDE_STATUS>': failed to parse accept range: no range pattern found

For more information, try '--help'.
error: Recipe `check-links` failed on line 385 with exit code 2

$ lychee -- --version
lychee 0.18.1

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtriage

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions