elnormous / elnormous/HTTPRequest

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

Open
#72 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
970
Forks
200
PR merge metrics
No merged PRs in 30d

Description

The `--help` option in line 25 lists `--url` as a possible argument
```c++
std::cout << "example --url [--protocol ] [--method ] [--arguments ] [--output ]\n";
```
but the argument parsing in line 28 expects `--uri`
```c++
else if (arg == "--uri")
```
and complains "Missing argument for --url" in line 31
```c++
else throw std::runtime_error("Missing argument for --url");
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.