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

Command line arguments to pass into main() #226

Open
hughlang opened this issue Dec 8, 2019 · 0 comments
Open

Command line arguments to pass into main() #226

hughlang opened this issue Dec 8, 2019 · 0 comments

Comments

@hughlang
Copy link

hughlang commented Dec 8, 2019

The cargo run command can accept positional arguments and even CLI args using the clap crate. However, cargo-web rejects any extra parameters outside of its strict dictionary.

I have a need to generate wasm binaries based on options passed on the command line, but it does not seem to be possible.

Is this a feature that this project is willing to accept? What format do you think would be the best for passing positional or key-value pairs to cargo web variable?

Something like --custom-args value1 value2 value3? Or more specific?

I'm willing to help in building this feature.

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

No branches or pull requests

1 participant