@@ -36,9 +36,9 @@ namespace Parser {
3636
3737ParserExecutor::ParserExecutor () : UserInputHandler()
3838{
39- cmd_line_opts_ .add (generic_ ).add (config_ ).add (hidden_ );
40- cfg_file_opts_ .add (config_ ).add (hidden_ );
41- visible_ .add (generic_ ).add (config_ );
39+ _cmd_line_opts .add (_generic ).add (_config ).add (_hidden );
40+ _cfg_file_opts .add (_config ).add (_hidden );
41+ _visible .add (_generic ).add (_config );
4242}
4343
4444void ParserExecutor::execute (int arg_count, char * args[])
@@ -47,7 +47,7 @@ void ParserExecutor::execute(int arg_count, char* args[])
4747
4848 Util::prog_opts::variables_map vm;
4949 store (Util::prog_opts::command_line_parser (arg_count, args)
50- .options (cmd_line_opts_ ).positional (positional_ ).run (), vm);
50+ .options (_cmd_line_opts ).positional (_positional ).run (), vm);
5151 notify (vm);
5252
5353 // Help handling -------------------------------------------------------------
@@ -56,7 +56,7 @@ void ParserExecutor::execute(int arg_count, char* args[])
5656 std::cout << " Usage: filename [options]\n " ;
5757 std::cout << " Command line options are prioritized over configuration file"
5858 " options." ;
59- std::cout << visible_ << " \n " ;
59+ std::cout << _visible << " \n " ;
6060 return ;
6161 }
6262
@@ -69,18 +69,18 @@ void ParserExecutor::execute(int arg_count, char* args[])
6969
7070 // Optional configuration file handling --------------------------------------
7171
72- if (config_file_ ) {
73- std::ifstream config_fs ((*config_file_ ).c_str ());
72+ if (_config_file ) {
73+ std::ifstream config_fs ((*_config_file ).c_str ());
7474 if (config_fs) {
75- store (parse_config_file (config_fs, cfg_file_opts_ ), vm);
75+ store (parse_config_file (config_fs, _cfg_file_opts ), vm);
7676 notify (vm);
7777 }
7878 }
7979
8080 // Input SBG program file handling -------------------------------------------
8181
82- if (input_file_ ) {
83- parseFile (*input_file_ );
82+ if (_input_file ) {
83+ parseFile (*_input_file );
8484 }
8585 else {
8686 std::cout << " Usage: filename [options]" ;
0 commit comments