Commit 88377749 authored by Arnaud Blanchard's avatar Arnaud Blanchard
Browse files

Replace blc_program_option_interpret_ ... deprecated by blc_program_parse_args_ ...

parent 0e19601f
......@@ -20,13 +20,13 @@ int main( int argc, char **argv){
blc_program_add_parameter(&optional_parameter, "string", 0, "Show how to accept simple text as option", NULL);
//Interprets the arguments, associates variables and print program name as title.
blc_program_option_interpret_and_print_title(&argc, &argv);
blc_program_parse_args_and_print_title(&argc, &argv);
//We display on stderr. It is a good habit to use for interaction with the user
fprintf(stderr, "Display help:\n");
//Display all the possible options / arguments
//After interpret options, we can use the variable **blc_program_name**
fprintf(stderr, "Parsed arguments:\n");
......@@ -41,4 +41,4 @@ int main( int argc, char **argv){
else fprintf(stderr, "- No optional argument\n");
return 0;
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment