Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use with options that can take multiple arguments #22

Closed
ltalirz opened this issue Apr 20, 2021 · 0 comments · Fixed by #23
Closed

Use with options that can take multiple arguments #22

ltalirz opened this issue Apr 20, 2021 · 0 comments · Fixed by #23

Comments

@ltalirz
Copy link
Contributor

ltalirz commented Apr 20, 2021

Some lychee options can take multiple arguments, e.g. the --exclude options.
When using those options, one then needs to separate the list of files to check by a double dash --, see lycheeverse/lychee#113

For example:

lychee --verbose --timeout 40 --insecure  --exclude "https://www.msg.chem.iastate.edu/"  "https://openmopac.net/"  -- codes.md

The problem is: lychee-action appends --output /tmp/lychee/out.md to the command line, which is then interpreted as another input file:

lychee --verbose --timeout 40 --insecure --exclude https://www.msg.chem.iastate.edu/ https://openmopac.net/ -- codes.md --output /tmp/lychee/out.md
Error: Failed to read file: `--output`, reason: No such file or directory (os error 2)

Instead of appending the --output option, what about prepending it before the args?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant