ARGS < ${GGO_FILE_ABS}
--output-dir=${CMAKE_CURRENT_BINARY_DIR}
--arg-struct-name=args_info_${GGO_BASEFILENAME}
+ --func-name=cmdline_parser_${GGO_BASEFILENAME}
--file-name=${GGO_BASEFILENAME}_ggo
--unamed-opts
--conf-parser
// GGO with modified struct name
#define GGO(ggo_filename, args_info) \
args_info_##ggo_filename args_info; \
- cmdline_parser2(argc, argv, &args_info, 1, 1, 0); \
+ cmdline_parser_##ggo_filename##2(argc, argv, &args_info, 1, 1, 0); \
if (args_info.config_given) \
- cmdline_parser_configfile (args_info.config_arg, &args_info, 0, 0, 1); \
- else cmdline_parser(argc, argv, &args_info);
+ cmdline_parser_##ggo_filename##_configfile (args_info.config_arg, &args_info, 0, 0, 1); \
+ else cmdline_parser_##ggo_filename(argc, argv, &args_info);
//--------------------------------------------------------------------
// skip line with #