Skip to content

Replace parsed build args with positional args - #28

Closed
mkroening wants to merge 1 commit into
LukeMathWalker:mainfrom
mkroening:pos-args
Closed

mkroening wants to merge 1 commit into
LukeMathWalker:mainfrom
mkroening:pos-args

Conversation

@mkroening

Copy link
Copy Markdown
Contributor

This removes manual parsing of all cargo-build arguments. Instead, build arguments are now accepted through last positional arguments. Those arguments which are important for decisions made by cargo-chef are parsed from there.

This allows specifying all possible build arguments while still reacting to some of them. Originally, I was trying to pass --workspace, which is not possible currently, but found that it might be easier to just allow specifying any build argument instead of parsing each possible build argument explicitly.

What do you think?

@LukeMathWalker

Copy link
Copy Markdown
Owner

Parsing the build arguments has been an intentional design choice in cargo-chef - certain build arguments require cargo-chef to perform additional actions and I prefer to have a dev opening an issue here saying "flag xyz is not supported" than having the tool behave weirdly because they hit a edge case I didn't account for.
Therefore I'll close this PR but I am happy to merge one adding support for --workspace 👍

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