35int main(
int argc,
char **argv) {
38 std::vector<std::string> args(argv + 1, argv + argc);
43 if (config.run_server) {
48 User user = User::fetch_github_user(config.username);
53 }
catch (
const std::exception &ex) {
54 std::cerr <<
"Error: " << ex.what() <<
"\n";
AppConfig parse_arguments(const std::vector< std::string > &args)
Parses command-line arguments into an AppConfig structure.
void start_http_server(int port)
Starts an HTTP server on the specified port.
Structure representing a GitHub user.