From fe12cdce3fa13d490852e7f389015a1958a6f2c6 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 22 Jun 2026 19:24:27 +0200 Subject: aesxx/utils: some more basic refactoring --- aesxx/utils/helpers/cmd_parser.hpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'aesxx/utils/helpers/cmd_parser.hpp') diff --git a/aesxx/utils/helpers/cmd_parser.hpp b/aesxx/utils/helpers/cmd_parser.hpp index 607253c..11146e8 100644 --- a/aesxx/utils/helpers/cmd_parser.hpp +++ b/aesxx/utils/helpers/cmd_parser.hpp @@ -39,12 +39,14 @@ public: vm ); if (vm.count("help")) - exit_with_usage = true; + _exit_with_usage = true; else boost::program_options::notify(vm); } - bool exit_with_usage = false; + bool exit_with_usage() const { + return _exit_with_usage; + } void usage() const { std::cout << *this; @@ -73,4 +75,6 @@ private: os << parser.visible; return os; } + + bool _exit_with_usage = false; }; -- cgit v1.3