Clean up includes
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
#include <electricity/logger/database.hpp>
|
||||
#include <exception>
|
||||
#include <iomanip>
|
||||
#include <spdlog/spdlog.h>
|
||||
#include <sstream>
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#include <electricity/logger/serialport.hpp>
|
||||
#include <exception>
|
||||
#include <fcntl.h>
|
||||
#include <iostream>
|
||||
#include <optional>
|
||||
#include <spdlog/spdlog.h>
|
||||
#include <stdexcept>
|
||||
@@ -34,7 +35,7 @@ std::optional<cxxopts::ParseResult> ExtractArgs(int argc, char ** argv)
|
||||
auto const parsed = options.parse(argc, argv);
|
||||
return parsed;
|
||||
}
|
||||
catch(cxxopts::OptionException const & e)
|
||||
catch(cxxopts::exceptions::exception const & e)
|
||||
{
|
||||
spdlog::error(e.what());
|
||||
return {};
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
#include <cmath>
|
||||
#include <cstdlib>
|
||||
#include <ctime>
|
||||
#include <iomanip>
|
||||
#include <solar/logger/database.hpp>
|
||||
#include <spdlog/spdlog.h>
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
#include <cstdio>
|
||||
#include <cxxopts.hpp>
|
||||
#include <iomanip>
|
||||
#include <iostream>
|
||||
#include <optional>
|
||||
#include <solar/logger/database.hpp>
|
||||
#include <solar/logger/envoydata.hpp>
|
||||
#include <solar/logger/zeverdata.hpp>
|
||||
#include <spdlog/spdlog.h>
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
|
||||
namespace detail
|
||||
@@ -53,7 +52,7 @@ std::optional<cxxopts::ParseResult> ExtractArgs(int argc, char ** argv)
|
||||
auto const parsed = options.parse(argc, argv);
|
||||
return parsed;
|
||||
}
|
||||
catch(cxxopts::OptionException const & e)
|
||||
catch(cxxopts::exceptions::exception const & e)
|
||||
{
|
||||
spdlog::error(e.what());
|
||||
return {};
|
||||
|
||||
Reference in New Issue
Block a user