aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/aesxx/utils/helpers/cmd_parser.hpp
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-06-22 19:24:27 +0200
committerEgor Tensin <egor@tensin.name>2026-06-22 19:29:28 +0200
commitfe12cdce3fa13d490852e7f389015a1958a6f2c6 (patch)
tree0802935a5fd6f494cc57d66c8a7282185267c12d /aesxx/utils/helpers/cmd_parser.hpp
parentaesxx/utils: more refactoring (diff)
downloadaes-tools-fe12cdce3fa13d490852e7f389015a1958a6f2c6.tar.gz
aes-tools-fe12cdce3fa13d490852e7f389015a1958a6f2c6.zip
aesxx/utils: some more basic refactoring
Diffstat (limited to 'aesxx/utils/helpers/cmd_parser.hpp')
-rw-r--r--aesxx/utils/helpers/cmd_parser.hpp8
1 files changed, 6 insertions, 2 deletions
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;
};