moar c++is comments
parent
f5d177e63a
commit
3281cb1b6e
|
@ -14,26 +14,24 @@ int main(int argc, char **argv)
|
|||
|
||||
struct cmd_parser_params *params;
|
||||
|
||||
/* initialize the parameters structure */
|
||||
//initialize the parameters structure
|
||||
params = cmd_parser_params_create();
|
||||
|
||||
/* call the command line parser */
|
||||
//call the command line parser
|
||||
if (cmd_parser(argc, argv, &args_info) != 0) {
|
||||
result = 1;
|
||||
goto stop;
|
||||
}
|
||||
|
||||
/*
|
||||
override command line options,
|
||||
but do not initialize args_info, check for required options.
|
||||
NOTICE: we must NOT skip the 0 assignment to initialize,
|
||||
since its default value is 1 and override defaults to 0
|
||||
while check_required is already set to its default value, 1
|
||||
*/
|
||||
//override command line options,
|
||||
//but do not initialize args_info, check for required options.
|
||||
//NOTICE: we must NOT skip the 0 assignment to initialize,
|
||||
//since its default value is 1 and override defaults to 0
|
||||
//while check_required is already set to its default value, 1
|
||||
params->initialize = 1;
|
||||
params->override = 0;
|
||||
|
||||
/* call the config file parser */
|
||||
//call the config file parser
|
||||
if (cmd_parser_config_file
|
||||
(args_info.conffile_arg, &args_info, params) != 0) {
|
||||
result = 1;
|
||||
|
@ -64,7 +62,7 @@ int main(int argc, char **argv)
|
|||
}
|
||||
|
||||
stop:
|
||||
/* deallocate structures */
|
||||
//deallocate structures
|
||||
cmd_parser_free(&args_info);
|
||||
free(params);
|
||||
|
||||
|
|
Loading…
Reference in New Issue