diff options
Diffstat (limited to 'aesxx/utils/helpers/cmd_parser.hpp')
| -rw-r--r-- | aesxx/utils/helpers/cmd_parser.hpp | 8 |
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; }; |
