From: Kevin Day Date: Fri, 9 Oct 2020 00:28:11 +0000 (-0500) Subject: Cleanup: fix help parameter spacing and add additional information. X-Git-Tag: 0.5.1~38 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=310540340c248bc9b8a9d89efb0cbfdd5013e8bf;p=fll Cleanup: fix help parameter spacing and add additional information. The basic list standard does not support quotes. Leave the quote parameters for consistency between the write programs, but add a note to the help explaining this. --- diff --git a/level_3/fss_basic_list_read/c/private-fss_basic_list_read.c b/level_3/fss_basic_list_read/c/private-fss_basic_list_read.c index a021353..903702f 100644 --- a/level_3/fss_basic_list_read/c/private-fss_basic_list_read.c +++ b/level_3/fss_basic_list_read/c/private-fss_basic_list_read.c @@ -323,9 +323,9 @@ extern "C" { if (at == depths.array[0].value_at) { print_object(f_type_output, data->buffer, data->objects.array[i]); - if (data->parameters[fss_basic_list_read_parameter_content].result == f_console_result_found) { - fss_basic_list_read_print_object_end(*data); + fss_basic_list_read_print_object_end(*data); + if (data->parameters[fss_basic_list_read_parameter_content].result == f_console_result_found) { if (data->contents.array[i].used) { f_print_dynamic_partial(f_type_output, data->buffer, data->contents.array[i].array[0]); } @@ -347,9 +347,9 @@ extern "C" { print_object(f_type_output, data->buffer, data->objects.array[i]); - if (data->parameters[fss_basic_list_read_parameter_content].result == f_console_result_found) { - fss_basic_list_read_print_object_end(*data); + fss_basic_list_read_print_object_end(*data); + if (data->parameters[fss_basic_list_read_parameter_content].result == f_console_result_found) { if (data->contents.array[i].used) { f_print_dynamic_partial(f_type_output, data->buffer, data->contents.array[i].array[0]); } diff --git a/level_3/fss_basic_list_write/c/fss_basic_list_write.c b/level_3/fss_basic_list_write/c/fss_basic_list_write.c index 4bff84c..07c6bc1 100644 --- a/level_3/fss_basic_list_write/c/fss_basic_list_write.c +++ b/level_3/fss_basic_list_write/c/fss_basic_list_write.c @@ -23,7 +23,7 @@ extern "C" { printf("%c", f_string_eol[0]); fll_program_print_help_option(file, context, fss_basic_list_write_short_file, fss_basic_list_write_long_file, f_console_symbol_short_enable, f_console_symbol_long_enable, " Specify a file to send output to."); - fll_program_print_help_option(file, context, fss_basic_list_write_short_content, fss_basic_list_write_long_content, f_console_symbol_short_enable, f_console_symbol_long_enable, " The content to output."); + fll_program_print_help_option(file, context, fss_basic_list_write_short_content, fss_basic_list_write_long_content, f_console_symbol_short_enable, f_console_symbol_long_enable, "The content to output."); fll_program_print_help_option(file, context, fss_basic_list_write_short_double, fss_basic_list_write_long_double, f_console_symbol_short_enable, f_console_symbol_long_enable, " Use double quotes (default)."); fll_program_print_help_option(file, context, fss_basic_list_write_short_object, fss_basic_list_write_long_object, f_console_symbol_short_enable, f_console_symbol_long_enable, " The object to output."); fll_program_print_help_option(file, context, fss_basic_list_write_short_partial, fss_basic_list_write_long_partial, f_console_symbol_short_enable, f_console_symbol_long_enable, "Do not output end of object/content character."); @@ -53,6 +53,14 @@ extern "C" { printf("%c", f_string_eol[0]); + printf(" The FSS-0002 (Basic List) specification does not support quoted names, therefore the parameters '"); + fl_color_print(f_type_output, context.set.notable, "%s%s", f_console_symbol_long_enable, fss_basic_list_write_long_single); + printf("' and '"); + fl_color_print(f_type_output, context.set.notable, "%s%s", f_console_symbol_long_enable, fss_basic_list_write_long_double); + printf("' do nothing.%c", f_string_eol[0]); + + printf("%c", f_string_eol[0]); + return F_none; } #endif // _di_fss_basic_list_write_print_help_ diff --git a/level_3/fss_basic_write/c/fss_basic_write.c b/level_3/fss_basic_write/c/fss_basic_write.c index fc170ba..0f71d44 100644 --- a/level_3/fss_basic_write/c/fss_basic_write.c +++ b/level_3/fss_basic_write/c/fss_basic_write.c @@ -23,7 +23,7 @@ extern "C" { printf("%c", f_string_eol[0]); fll_program_print_help_option(file, context, fss_basic_write_short_file, fss_basic_write_long_file, f_console_symbol_short_enable, f_console_symbol_long_enable, " Specify a file to send output to."); - fll_program_print_help_option(file, context, fss_basic_write_short_content, fss_basic_write_long_content, f_console_symbol_short_enable, f_console_symbol_long_enable, " The content to output."); + fll_program_print_help_option(file, context, fss_basic_write_short_content, fss_basic_write_long_content, f_console_symbol_short_enable, f_console_symbol_long_enable, "The content to output."); fll_program_print_help_option(file, context, fss_basic_write_short_double, fss_basic_write_long_double, f_console_symbol_short_enable, f_console_symbol_long_enable, " Use double quotes (default)."); fll_program_print_help_option(file, context, fss_basic_write_short_object, fss_basic_write_long_object, f_console_symbol_short_enable, f_console_symbol_long_enable, " The object to output."); fll_program_print_help_option(file, context, fss_basic_write_short_partial, fss_basic_write_long_partial, f_console_symbol_short_enable, f_console_symbol_long_enable, "Do not output end of object/content character."); diff --git a/level_3/fss_extended_write/c/fss_extended_write.c b/level_3/fss_extended_write/c/fss_extended_write.c index 7c4a2e7..74dc681 100644 --- a/level_3/fss_extended_write/c/fss_extended_write.c +++ b/level_3/fss_extended_write/c/fss_extended_write.c @@ -23,7 +23,7 @@ extern "C" { printf("%c", f_string_eol[0]); fll_program_print_help_option(file, context, fss_extended_write_short_file, fss_extended_write_long_file, f_console_symbol_short_enable, f_console_symbol_long_enable, " Specify a file to send output to."); - fll_program_print_help_option(file, context, fss_extended_write_short_content, fss_extended_write_long_content, f_console_symbol_short_enable, f_console_symbol_long_enable, " The content to output."); + fll_program_print_help_option(file, context, fss_extended_write_short_content, fss_extended_write_long_content, f_console_symbol_short_enable, f_console_symbol_long_enable, "The content to output."); fll_program_print_help_option(file, context, fss_extended_write_short_double, fss_extended_write_long_double, f_console_symbol_short_enable, f_console_symbol_long_enable, " Use double quotes (default)."); fll_program_print_help_option(file, context, fss_extended_write_short_object, fss_extended_write_long_object, f_console_symbol_short_enable, f_console_symbol_long_enable, " The object to output."); fll_program_print_help_option(file, context, fss_extended_write_short_partial, fss_extended_write_long_partial, f_console_symbol_short_enable, f_console_symbol_long_enable, "Do not output end of object/content character.");