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

Allow for extra arguments to hatchling build #1743

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

timkpaine
Copy link

@timkpaine timkpaine commented Oct 3, 2024

I was writing a custom hatch hook based off hatch-jupyter-builder, and I wanted to have behavior similar to their --skip-npm flag. But I realized. that I cannot pass this flag to e.g. hatchling build!

So this PR makes a small tweak to only parse out the known commands, leaving anything after the --. If other unknown commands are mixed in, the same behavior as current should occur (print usage message, exit 1).

This might resolve some issues, or allow for alternative solutions to questions raised by @blink1073

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.

1 participant