diff --git a/statusweather.cpp b/statusweather.cpp index 95c9d01..47fcd29 100644 --- a/statusweather.cpp +++ b/statusweather.cpp @@ -104,10 +104,8 @@ std::tuple get_options() std::ifstream configfile(path); po::store(po::parse_config_file(configfile, options, true), vm); configfile.close(); - if ((vm.count("api_key") == 0) || (vm.count("city") == 0)) - { - throw std::runtime_error{"api_key or city not configured."}; - } + + po::notify(vm); return std::make_tuple(vm["api_key"].as(), vm["city"].as());