@@ -29,22 +29,22 @@ int main(int argc, char* argv[]) {
2929 ;
3030
3131 options.parse_positional (std::vector<std::string>{" source" });
32- options.parse (argc, argv);
32+ auto optionsResults = options.parse (argc, argv);
3333
34- if (options .count (" help" )) {
34+ if (optionsResults .count (" help" )) {
3535 std::cout << options.help ({" " ," Group" }) << std::endl;
3636return EXIT_SUCCESS;
3737 }
3838
39- if (options .count (" source" ) <1 ) {
39+ if (optionsResults .count (" source" ) <1 ) {
4040 std::cout <<" Error: Source URL required." << std::endl;
4141 std::cout << options.help ({" " ," Group" }) << std::endl;
4242return EXIT_FAILURE;
4343 }
4444
45- std::string source =options [" source" ].as <std::string>();
46- bool show_headers =options .count (" headers" ) ?true :false ;
47- bool show_status =options .count (" status" ) ?true :false ;
45+ std::string source =optionsResults [" source" ].as <std::string>();
46+ bool show_headers =optionsResults .count (" headers" ) ?true :false ;
47+ bool show_status =optionsResults .count (" status" ) ?true :false ;
4848
4949 http::client::requestrequest (source);
5050 http::client::string_type destination_ =host (request);