The help printing functions are already per-sub-program-specific.
fss_write_setting_t setting = fss_write_setting_t_initialize;
setting.state.data = (void *) &data;
setting.standard = fss_write_basic_standard_s;
- setting.program_name = &fss_write_basic_program_name_s;
- setting.program_name_long = &fss_write_basic_program_name_long_s;
setting.process_content = &fss_write_basic_process_content;
setting.process_help = &fss_write_basic_process_help;
setting.process_normal = &fss_write_process_normal;
f_print_dynamic_raw(setting->line_first, print.to);
- fll_program_print_help_header(print, setting->program_name_long ? *setting->program_name_long : fss_write_program_name_long_s, fss_write_program_version_s);
+ fll_program_print_help_header(print, fss_write_basic_program_name_long_s, fss_write_program_version_s);
fss_write_print_help(setting, print);
f_print_dynamic_raw(f_string_eol_s, print.to);
- fll_program_print_help_usage(print, setting->program_name ? *setting->program_name : fss_write_program_name_s, f_string_empty_s);
+ fll_program_print_help_usage(print, fss_write_basic_program_name_s, f_string_empty_s);
fss_write_print_help_pipe(setting, print);
fss_write_setting_t setting = fss_write_setting_t_initialize;
setting.state.data = (void *) &data;
setting.standard = fss_write_basic_list_standard_s;
- setting.program_name = &fss_write_basic_list_program_name_s;
- setting.program_name_long = &fss_write_basic_list_program_name_long_s;
setting.process_content = &fss_write_basic_list_process_content;
setting.process_help = &fss_write_basic_list_process_help;
setting.process_normal = &fss_write_process_normal;
f_print_dynamic_raw(setting->line_first, print.to);
- fll_program_print_help_header(print, setting->program_name_long ? *setting->program_name_long : fss_write_program_name_long_s, fss_write_program_version_s);
+ fll_program_print_help_header(print, fss_write_basic_list_program_name_long_s, fss_write_program_version_s);
fss_write_print_help(setting, print);
f_print_dynamic_raw(f_string_eol_s, print.to);
- fll_program_print_help_usage(print, setting->program_name ? *setting->program_name : fss_write_program_name_s, f_string_empty_s);
+ fll_program_print_help_usage(print, fss_write_basic_list_program_name_s, f_string_empty_s);
fss_write_print_help_pipe(setting, print);
fss_write_setting_t setting = fss_write_setting_t_initialize;
setting.state.data = (void *) &data;
setting.standard = fss_write_embedded_list_standard_s;
- setting.program_name = &fss_write_embedded_list_program_name_s;
- setting.program_name_long = &fss_write_embedded_list_program_name_long_s;
setting.process_content = &fss_write_embedded_list_process_content;
setting.process_help = &fss_write_embedded_list_process_help;
setting.process_normal = &fss_write_process_normal;
f_print_dynamic_raw(setting->line_first, print.to);
- fll_program_print_help_header(print, setting->program_name_long ? *setting->program_name_long : fss_write_program_name_long_s, fss_write_program_version_s);
+ fll_program_print_help_header(print, fss_write_embedded_list_program_name_long_s, fss_write_program_version_s);
fss_write_print_help(setting, print);
f_print_dynamic_raw(f_string_eol_s, print.to);
- fll_program_print_help_usage(print, setting->program_name ? *setting->program_name : fss_write_program_name_s, f_string_empty_s);
+ fll_program_print_help_usage(print, fss_write_embedded_list_program_name_s, f_string_empty_s);
fss_write_print_help_pipe(setting, print);
fss_write_setting_t setting = fss_write_setting_t_initialize;
setting.state.data = (void *) &data;
setting.standard = fss_write_extended_standard_s;
- setting.program_name = &fss_write_extended_program_name_s;
- setting.program_name_long = &fss_write_extended_program_name_long_s;
setting.process_content = &fss_write_extended_process_content;
setting.process_help = &fss_write_extended_process_help;
setting.process_normal = &fss_write_process_normal;
f_print_dynamic_raw(setting->line_first, print.to);
- fll_program_print_help_header(print, setting->program_name_long ? *setting->program_name_long : fss_write_program_name_long_s, fss_write_program_version_s);
+ fll_program_print_help_header(print, fss_write_extended_program_name_long_s, fss_write_program_version_s);
fss_write_print_help(setting, print);
f_print_dynamic_raw(f_string_eol_s, print.to);
- fll_program_print_help_usage(print, setting->program_name ? *setting->program_name : fss_write_program_name_s, f_string_empty_s);
+ fll_program_print_help_usage(print, fss_write_extended_program_name_s, f_string_empty_s);
fss_write_print_help_pipe(setting, print);
fss_write_setting_t setting = fss_write_setting_t_initialize;
setting.state.data = (void *) &data;
setting.standard = fss_write_extended_list_standard_s;
- setting.program_name = &fss_write_extended_list_program_name_s;
- setting.program_name_long = &fss_write_extended_list_program_name_long_s;
setting.process_content = &fss_write_extended_list_process_content;
setting.process_help = &fss_write_extended_list_process_help;
setting.process_normal = &fss_write_process_normal;
f_print_dynamic_raw(setting->line_first, print.to);
- fll_program_print_help_header(print, setting->program_name_long ? *setting->program_name_long : fss_write_program_name_long_s, fss_write_program_version_s);
+ fll_program_print_help_header(print, fss_write_extended_list_program_name_long_s, fss_write_program_version_s);
fss_write_print_help(setting, print);
f_print_dynamic_raw(f_string_eol_s, print.to);
- fll_program_print_help_usage(print, setting->program_name ? *setting->program_name : fss_write_program_name_s, f_string_empty_s);
+ fll_program_print_help_usage(print, fss_write_extended_list_program_name_s, f_string_empty_s);
fss_write_print_help_pipe(setting, print);
f_string_static_t *content;
f_string_statics_t *contents;
- const f_string_static_t *program_name;
- const f_string_static_t *program_name_long;
-
void (*process_content)(fll_program_data_t * const main, void * const setting, const bool last);
void (*process_help)(fll_program_data_t * const main, void * const setting);
void (*process_normal)(fll_program_data_t * const main, void * const setting);
0, \
0, \
0, \
- 0, \
- 0, \
}
#endif // _di_fss_write_setting_t_
fll_program_data_t data = fll_program_data_t_initialize;
fss_write_setting_t setting = fss_write_setting_t_initialize;
setting.state.data = (void *) &data;
- setting.program_name = &fss_write_program_name_s;
- setting.program_name_long = &fss_write_program_name_long_s;
f_console_parameter_t parameters[] = fss_write_console_parameter_t_initialize;
data.parameters.array = parameters;
if (!main || !setting || F_status_is_error(setting->status) || (setting->flag & fss_write_flag_version_e)) return;
setting->standard = fss_write_basic_standard_s;
- setting->program_name = &fss_write_program_name_s;
- setting->program_name_long = &fss_write_program_name_long_s;
setting->process_content = &fss_write_basic_process_content;
setting->process_help = &fss_write_main_process_help;
setting->process_normal = &fss_write_process_normal;
fl_string_dynamic_compare(argv[index], fss_write_format_code_human_0000_s) == F_equal_to) {
setting->standard = fss_write_basic_standard_s;
- setting->program_name = &fss_write_basic_program_name_s;
- setting->program_name_long = &fss_write_basic_program_name_long_s;
setting->process_content = &fss_write_basic_process_content;
setting->process_help = &fss_write_basic_process_help;
setting->process_object = &fss_write_basic_process_object;
fl_string_dynamic_compare(argv[index], fss_write_format_code_human_0001_s) == F_equal_to) {
setting->standard = fss_write_extended_standard_s;
- setting->program_name = &fss_write_extended_program_name_s;
- setting->program_name_long = &fss_write_extended_program_name_long_s;
setting->process_content = &fss_write_extended_process_content;
setting->process_help = &fss_write_extended_process_help;
setting->process_object = &fss_write_extended_process_object;
fl_string_dynamic_compare(argv[index], fss_write_format_code_human_0002_s) == F_equal_to) {
setting->standard = fss_write_basic_list_standard_s;
- setting->program_name = &fss_write_basic_list_program_name_s;
- setting->program_name_long = &fss_write_basic_list_program_name_long_s;
setting->process_content = &fss_write_basic_list_process_content;
setting->process_help = &fss_write_basic_list_process_help;
setting->process_object = &fss_write_basic_list_process_object;
fl_string_dynamic_compare(argv[index], fss_write_format_code_human_0003_s) == F_equal_to) {
setting->standard = fss_write_extended_list_standard_s;
- setting->program_name = &fss_write_extended_list_program_name_s;
- setting->program_name_long = &fss_write_extended_list_program_name_long_s;
setting->process_content = &fss_write_extended_list_process_content;
setting->process_help = &fss_write_extended_list_process_help;
setting->process_object = &fss_write_extended_list_process_object;
fl_string_dynamic_compare(argv[index], fss_write_format_code_human_0008_s) == F_equal_to) {
setting->standard = fss_write_embedded_list_standard_s;
- setting->program_name = &fss_write_embedded_list_program_name_s;
- setting->program_name_long = &fss_write_embedded_list_program_name_long_s;
setting->process_content = &fss_write_embedded_list_process_content;
setting->process_help = &fss_write_embedded_list_process_help;
setting->process_object = &fss_write_embedded_list_process_object;
fl_string_dynamic_compare(argv[index], fss_write_format_code_human_000e_s) == F_equal_to) {
setting->standard = fss_write_payload_standard_s;
- setting->program_name = &fss_write_payload_program_name_s;
- setting->program_name_long = &fss_write_payload_program_name_long_s;
setting->process_content = 0; // Not used by payload.
setting->process_help = &fss_write_payload_process_help;
setting->process_normal = &fss_write_process_normal;
fss_write_setting_t setting = fss_write_setting_t_initialize;
setting.state.data = (void *) &data;
setting.standard = fss_write_payload_standard_s;
- setting.program_name = &fss_write_payload_program_name_s;
- setting.program_name_long = &fss_write_payload_program_name_long_s;
setting.process_content = 0; // Not used by payload.
setting.process_help = &fss_write_payload_process_help;
setting.process_normal = &fss_write_process_normal;
f_print_dynamic_raw(setting->line_first, print.to);
- fll_program_print_help_header(print, setting->program_name_long ? *setting->program_name_long : fss_write_program_name_long_s, fss_write_program_version_s);
+ fll_program_print_help_header(print, fss_write_payload_program_name_long_s, fss_write_program_version_s);
fss_write_print_help(setting, print);
f_print_dynamic_raw(f_string_eol_s, print.to);
- fll_program_print_help_usage(print, setting->program_name ? *setting->program_name : fss_write_program_name_s, f_string_empty_s);
+ fll_program_print_help_usage(print, fss_write_payload_program_name_s, f_string_empty_s);
fss_write_print_help_pipe(setting, print);