elnormous / HTTPRequest

Single-header C++ HTTP request class
The Unlicense
942 stars 213 forks source link

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

Open gitasmus opened 8 months ago

gitasmus commented 8 months ago

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");