Reformat main.cpp with clang-format.

This commit is contained in:
tastytea 2020-08-24 16:25:15 +02:00
parent ec3c8933b2
commit b512146115
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 16 additions and 15 deletions

View File

@ -34,8 +34,8 @@
namespace mastorss namespace mastorss
{ {
using std::cout;
using std::cerr; using std::cerr;
using std::cout;
namespace error namespace error
{ {
@ -53,8 +53,9 @@ void print_help(const string_view &command);
void print_version() void print_version()
{ {
cout << "mastorss " << version << "\n" cout
"Copyright (C) 2019 tastytea <tastytea@tastytea.de>\n" << "mastorss " << version
<< "\nCopyright (C) 2019, 2020 tastytea <tastytea@tastytea.de>\n"
"License GPLv3: GNU GPL version 3 " "License GPLv3: GNU GPL version 3 "
"<https://www.gnu.org/licenses/gpl-3.0.html>.\n" "<https://www.gnu.org/licenses/gpl-3.0.html>.\n"
"This program comes with ABSOLUTELY NO WARRANTY. " "This program comes with ABSOLUTELY NO WARRANTY. "
@ -71,25 +72,25 @@ void print_help(const string_view &command)
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
using namespace mastorss; using namespace mastorss;
using std::chrono::seconds;
using std::getenv;
using std::cerr; using std::cerr;
using std::getenv;
using std::runtime_error; using std::runtime_error;
using std::string_view; using std::string_view;
using std::vector; using std::vector;
using std::chrono::seconds;
using std::this_thread::sleep_for; using std::this_thread::sleep_for;
const vector<string_view> args(argv, argv + argc); const vector<string_view> args(argv, argv + argc);
if (getenv("MASTORSS_DEBUG") == nullptr) if (getenv("MASTORSS_DEBUG") == nullptr)
{ {
boost::log::core::get()->set_filter boost::log::core::get()->set_filter(boost::log::trivial::severity
(boost::log::trivial::severity >= boost::log::trivial::info); >= boost::log::trivial::info);
} }
else else
{ {
boost::log::core::get()->set_filter boost::log::core::get()->set_filter(boost::log::trivial::severity
(boost::log::trivial::severity >= boost::log::trivial::debug); >= boost::log::trivial::debug);
} }
if (args.size() == 1) if (args.size() == 1)