Inconsistent use of 'uri' and 'url' in example/main.cpp
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 55/100
Research direction
Open example/main.cpp and inspect the --help text, argument parser, and missing-argument error around the lines mentioned in the issue. Make the option name consistent across all three locations, then run the example with --help and the affected argument forms to confirm parsing and error output agree.
Written by the indexing model from the issue text.
Description
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");
- Dominant language
- C++
- Stars
- 969
- Forks
- 200
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from elnormous/HTTPRequest
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
elnormous/HTTPRequest#79 · 2 reactions ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
elnormous/HTTPRequest#77 ·
-
A couple of ideas Open
Difficulty 5/5 Over a week Newbie friendliness 20/100
elnormous/HTTPRequest#76 · 2 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
elnormous/HTTPRequest#75 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
elnormous/HTTPRequest#74 · 1 comment ·
All issues in elnormous/HTTPRequest
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
games-on-whales/wolf#509 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
bug-unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100