diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2015-12-27 01:28:16 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2015-12-27 01:28:16 +0300 |
commit | 80395ff9164a0d10d3d0a21db51030f653d0fa1a (patch) | |
tree | 6d1fedd49ea6669282c74f77d07108b780c435b8 /utils/file_cmd_parser.hpp | |
parent | code style (diff) | |
download | aes-tools-80395ff9164a0d10d3d0a21db51030f653d0fa1a.tar.gz aes-tools-80395ff9164a0d10d3d0a21db51030f653d0fa1a.zip |
utils: Boost.Filesystem for usage messages
Diffstat (limited to '')
-rw-r--r-- | utils/file_cmd_parser.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/file_cmd_parser.hpp b/utils/file_cmd_parser.hpp index 15b6a45..cf5d188 100644 --- a/utils/file_cmd_parser.hpp +++ b/utils/file_cmd_parser.hpp @@ -13,6 +13,7 @@ #include <aesnixx/all.hpp> #include <boost/config.hpp> +#include <boost/filesystem.hpp> #include <boost/program_options.hpp> #include <ostream> @@ -48,8 +49,8 @@ namespace class CommandLineParser { public: - CommandLineParser(const char* prog_name) - : prog_name(prog_name) + CommandLineParser(const std::string& argv0) + : prog_name(boost::filesystem::path(argv0).filename().string()) , options("Options") { namespace po = boost::program_options; |