aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmd.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-01-12 15:08:38 +0000
committersaturneric <[email protected]>2024-01-12 15:08:38 +0000
commit6983b5c1dd82d159236ebd06cf17f071cc9c1ee9 (patch)
treefc53f790e33546320b2ecd306a1a9ade6fbdfe7a /src/cmd.cpp
parentfix: slove a heap-use-after-free issue (diff)
downloadGpgFrontend-6983b5c1dd82d159236ebd06cf17f071cc9c1ee9.tar.gz
GpgFrontend-6983b5c1dd82d159236ebd06cf17f071cc9c1ee9.zip
refactor: remove boost and use QString instead of std::filesystem::path
Diffstat (limited to 'src/cmd.cpp')
-rw-r--r--src/cmd.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/cmd.cpp b/src/cmd.cpp
index 29a8114d..a8a5b9d9 100644
--- a/src/cmd.cpp
+++ b/src/cmd.cpp
@@ -33,16 +33,11 @@
// std
#include <iostream>
-// boost
-#include <boost/program_options.hpp>
-
// GpgFrontend
#include "GpgFrontendBuildInfo.h"
#include "GpgFrontendContext.h"
#include "test/GpgFrontendTest.h"
-namespace po = boost::program_options;
-
namespace GpgFrontend {
auto PrintVersion() -> int {
@@ -62,9 +57,7 @@ auto PrintVersion() -> int {
return 0;
}
-auto ParseLogLevel(const po::variables_map& vm) -> spdlog::level::level_enum {
- std::string log_level = vm["log-level"].as<std::string>();
-
+auto ParseLogLevel(const QString& log_level) -> spdlog::level::level_enum {
if (log_level == "trace") {
return spdlog::level::trace;
}