8000 skip flag parsing with zvm run by vrischmann · Pull Request #123 · tristanisham/zvm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

skip flag parsing with zvm run #123

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

Merged
merged 1 commit into from
Mar 6, 2025

Conversation

vrischmann
Copy link
Contributor

Hello,

currently zvm run can't be used with a zig command that requires flags, for example zvm run 0.13.0 build test --summary all fails because urfave/cli will try to parse the --summary flag; the command fails with this error:

Incorrect Usage: flag provided but not defined: -summary

2025/03/01 22:13:59 ERRO flag provided but not defined: -summary

This PR fixes this by telling urfave/cli to skip flag parsing in zvm run.

Currently `zvm run` can't be used with a zig command that requires flags,
for example `zvm run 0.13.0 build test --summary all` fails because urfave/cli will try to parse the `--summary` flag;
the command fails with this error:

    Incorrect Usage: flag provided but not defined: -summary

    2025/03/01 22:13:59 ERRO flag provided but not defined: -summary

This commit fixes this by telling urfave/cli to skip flag parsing in
`zvm run`.
@tristanisham tristanisham merged commit 3c47665 into tristanisham:master Mar 6, 2025
1 check failed
@vrischmann vrischmann deleted the fix-zvm-run branch March 6, 2025 13:08
@tristanisham
742D Copy link
Owner

Hey! This looks good. I just merged it from my phone. Unfortunately, I'm in Portugal this week so I can't publish a full release until I'm back.

Thank you for taking the time to add this nice fix!

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 this pull request may close these issues.

2 participants
0