Skip to content

Consider offering a way to specify command line arguments #371

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

Open
intendo opened this issue Aug 1, 2018 · 2 comments
Open

Consider offering a way to specify command line arguments #371

intendo opened this issue Aug 1, 2018 · 2 comments
Labels
enhancement Something new the playground could do

Comments

@intendo
Copy link

intendo commented Aug 1, 2018

I want to test command line argument parsing. How do you supply command line arguments or environment variables to playground?

@shepmaster shepmaster added the enhancement Something new the playground could do label Aug 1, 2018
@shepmaster shepmaster changed the title I want to test command line argument parsing. How do you supply command line arguments or environment variables to playground? Consider offering a way to specify standard input Aug 1, 2018
@shepmaster
Copy link
Member

supply command line arguments

You cannot currently. I've changed this issue to track that as a possible enhancement.

or environment variables

std::env::set_var

test command line argument parsing

I'd pass a string or an iterator of strings to the parsing code. See how clap does something similar

@shepmaster shepmaster changed the title Consider offering a way to specify standard input Consider offering a way to specify command line arguments Aug 1, 2018
@intendo
Copy link
Author

intendo commented Aug 3, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Something new the playground could do
Projects
None yet
Development

No branches or pull requests

2 participants