From 80395ff9164a0d10d3d0a21db51030f653d0fa1a Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 27 Dec 2015 01:28:16 +0300 Subject: utils: Boost.Filesystem for usage messages --- utils/block_cmd_parser.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'utils/block_cmd_parser.hpp') diff --git a/utils/block_cmd_parser.hpp b/utils/block_cmd_parser.hpp index 708c241..3468d58 100644 --- a/utils/block_cmd_parser.hpp +++ b/utils/block_cmd_parser.hpp @@ -13,6 +13,7 @@ #include #include +#include #include #include @@ -42,8 +43,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; -- cgit v1.2.3