Skip to content

Commit

Permalink
Another fix for gengetopt macro: multiple options were read twice and
Browse files Browse the repository at this point in the history
concatenated
  • Loading branch information
Simon Rit committed Dec 12, 2014
1 parent ec0856b commit 3f41e05
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions code/rtkMacro.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,23 +51,21 @@
cmdline_parser_##ggo_filename##_params_init(&args_params); \
args_params.print_errors = 1; \
args_params.check_required = 0; \
args_params.initialize = 1; \
args_params.override = 1; \
args_params.initialize = 1; \
if(0 != cmdline_parser_##ggo_filename##_ext(argc, argv, &args_info, &args_params) ) \
{ \
std::cerr << "Error in cmdline_parser_" #ggo_filename "_ext" << std::endl; \
exit(1); \
} \
args_params.override = 0; \
args_params.initialize = 0; \
if (args_info.config_given) \
{ \
if(0 != cmdline_parser_##ggo_filename##_config_file (args_info.config_arg, &args_info, &args_params) ) \
{ \
std::cerr << "Error in cmdline_parser_" #ggo_filename "_config_file" << std::endl; \
exit(1); \
} \
args_params.initialize = 0; \
} \
args_params.check_required = 1; \
if(0 != cmdline_parser_##ggo_filename##_ext(argc, argv, &args_info, &args_params) ) \
Expand Down

0 comments on commit 3f41e05

Please sign in to comment.