]> Kevux Git Server - fll/commitdiff
Bugfix: Fix new lines when printing help.
authorKevin Day <kevin@kevux.org>
Wed, 26 Jul 2023 04:26:15 +0000 (23:26 -0500)
committerKevin Day <kevin@kevux.org>
Wed, 26 Jul 2023 04:26:15 +0000 (23:26 -0500)
I noticed a couple of programs are missing the correct new lines when printing the help.

level_3/byte_dump/c/main/print/message.c
level_3/fake/c/main/print/message.c

index 5e44bcef7285b8d7bef8ac2e2355de38648af9e5..58187c58b27a66abef9d1c43b2d012af34a1564b 100644 (file)
@@ -39,9 +39,7 @@ extern "C" {
     fll_program_print_help_option(print, byte_dump_short_wide_s, byte_dump_long_wide_s, f_console_symbol_short_normal_s, f_console_symbol_long_normal_s, "       Use wide display, resulting in 2*width allowing for space for wide characters in the text columns.");
     fll_program_print_help_option(print, byte_dump_short_width_s, byte_dump_long_width_s, f_console_symbol_short_normal_s, f_console_symbol_long_normal_s, "      Set number of columns of Bytes to display.");
 
-    f_print_dynamic_raw(f_string_eol_s, print->to);
-
-    fl_print_format(" %[Special Options:%] ", print->to, print->set->important, print->set->important);
+    fl_print_format("%r %[Special Options:%] %r", print->to, f_string_eol_s, print->set->important, print->set->important, f_string_eol_s);
 
     fll_program_print_help_option_long(print, byte_dump_long_normal_s, f_console_symbol_long_normal_s, " Display UTF-8 symbols for ASCII control codes.");
     fll_program_print_help_option_long(print, byte_dump_long_simple_s, f_console_symbol_long_normal_s, " Display spaces for ASCII control codes.");
index c511c011b5a43ef3968f16b16390207329d9e708..6a645f647972f842f3abf2eb3a6189d7cccdc60a 100644 (file)
@@ -99,7 +99,7 @@ extern "C" {
     fll_program_print_help_option(print, fake_short_sources_s, fake_long_sources_s, f_console_symbol_short_normal_s, f_console_symbol_long_normal_s, "  Specify a custom path to the source files.");
     fll_program_print_help_option(print, fake_short_work_s, fake_long_work_s, f_console_symbol_short_normal_s, f_console_symbol_long_normal_s, "     Use includes/libraries/programs from this directory instead of system.");
 
-    fl_print_format("%r%r %[Special Options:%]%r", print->to, f_string_eol_s, f_string_eol_s, print->set->important, print->set->important, f_string_eol_s);
+    fl_print_format("%r %[Special Options:%]%r", print->to, f_string_eol_s, print->set->important, print->set->important, f_string_eol_s);
 
     fll_program_print_help_option_long(print, fake_long_documents_disabled_s, f_console_symbol_long_normal_s, "   Forcibly do not build documents files.");
     fll_program_print_help_option_long(print, fake_long_documents_enabled_s, f_console_symbol_long_normal_s, "    Forcibly do build documents files.");
@@ -108,7 +108,7 @@ extern "C" {
     fll_program_print_help_option_long(print, fake_long_static_disabled_s, f_console_symbol_long_normal_s, "Forcibly do not build static files.");
     fll_program_print_help_option_long(print, fake_long_static_enabled_s, f_console_symbol_long_normal_s, " Forcibly do build static files.");
 
-    fl_print_format("%r %[Operations:%] ", print->to, f_string_eol_s, print->set->important, print->set->important);
+    fl_print_format("%r %[Operations:%] %r", print->to, f_string_eol_s, print->set->important, print->set->important, f_string_eol_s);
 
     fll_program_print_help_option_other(print, fake_other_operation_build_s, "   Build or compile the code based on build settings file.");
     fll_program_print_help_option_other(print, fake_other_operation_clean_s, "   Delete all build files.");