diff options
| author | Egor Tensin <egor@tensin.name> | 2026-07-24 12:03:01 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-07-24 12:08:42 +0200 |
| commit | bf65cb89410cdb2d831094980631ecf4ef8f2928 (patch) | |
| tree | 7ffbd446e74eb82c7d67e41d71f2a919ff689f9a /aesxx/utils/helpers | |
| parent | aes: add a few notes to ASM files (diff) | |
| download | aes-tools-bf65cb89410cdb2d831094980631ecf4ef8f2928.tar.gz aes-tools-bf65cb89410cdb2d831094980631ecf4ef8f2928.zip | |
aesxx/utils: fix the --verbose option
Diffstat (limited to 'aesxx/utils/helpers')
| -rw-r--r-- | aesxx/utils/helpers/cmd_parser_block.hpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/aesxx/utils/helpers/cmd_parser_block.hpp b/aesxx/utils/helpers/cmd_parser_block.hpp index b463656..e8ba1b6 100644 --- a/aesxx/utils/helpers/cmd_parser_block.hpp +++ b/aesxx/utils/helpers/cmd_parser_block.hpp @@ -52,7 +52,7 @@ public: explicit BlockSettings(std::string_view argv0) : SettingsParser{argv0} { namespace po = boost::program_options; - visible.add_options()("verbose,v", po::bool_switch(&_verbose), "enable verbose output"); + visible.add_options()("verbose,v", po::bool_switch(&verbose), "enable verbose output"); visible.add_options()( "algorithm,a", po::value(&algorithm)->required()->value_name("NAME"), "set algorithm" ); @@ -94,8 +94,8 @@ public: return inputs; } - bool verbose() const { - return _verbose; + bool get_verbose() const { + return verbose; } private: @@ -140,6 +140,5 @@ private: aes::Algorithm algorithm; aes::Mode mode; std::vector<Input> inputs; - - bool _verbose = false; + bool verbose = false; }; |
