Command line arguments to pass into main()
hughlang opened this issue · comments
hughlang commented
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.