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

Inconsistent use of 'uri' and 'url' in example/main.cpp #72

Open
gitasmus opened this issue Feb 7, 2024 · 0 comments
Open

Inconsistent use of 'uri' and 'url' in example/main.cpp #72

gitasmus opened this issue Feb 7, 2024 · 0 comments

Comments

@gitasmus
Copy link

gitasmus commented Feb 7, 2024

The --help option in line 25 lists --url as a possible argument

std::cout << "example --url <url> [--protocol <protocol>] [--method <method>] [--arguments <arguments>] [--output <output>]\n";

but the argument parsing in line 28 expects --uri

else if (arg == "--uri")

and complains "Missing argument for --url" in line 31

else throw std::runtime_error("Missing argument for --url");
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