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

Parsing command line arguments as a std::string #329

Open
huangzonghao opened this issue Apr 28, 2022 · 1 comment
Open

Parsing command line arguments as a std::string #329

huangzonghao opened this issue Apr 28, 2022 · 1 comment

Comments

@huangzonghao
Copy link

Wondering if there is any plan to add cxxopt::Options::parser(int argc, std::string argv) into the library, or accept a pull request for this function.

I think a good reason to include this feature in the library is to deal with protocol calls from browser or other applications where all the input arguments are passed in as a long string in url format. And currently I am running a pre-parser to convert the string to char** argv, but I think it would be good to have the library parse the string directly.

@jarro2783
Copy link
Owner

I can't see any reason not to do that. I can't really work on it right now, but I will look at a PR.

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

2 participants