Pass CLI Args in Online IDEs like ideone

Online IDEs like Ideone or Rust Playground doesn't support CLI arguments, only if I could pass them somehow (e.g. in the source code)

Make your arg parsing function take the program's arguments as arguments.

clap and structopt both allow for this via get_matches_from a from_iter function. Just copy their signature.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.