}
if (f_status_is_error(status)) {
- fake_print_error(data.context, f_status_set_fine(status), "fl_string_dynamic_append", f_true);
+ fake_print_error(data.context, data.verbosity, f_status_set_fine(status), "fl_string_dynamic_append", f_true);
f_macro_string_dynamic_delete_simple(path);
return status;
}
if (f_status_is_error(status)) {
- fake_print_error_file(data.context, f_status_set_fine(status), name_function, path.string, "file", f_true);
+ fake_print_error_file(data.context, data.verbosity, f_status_set_fine(status), name_function, path.string, "file", f_true);
f_macro_string_dynamic_delete_simple(buffer);
f_macro_string_dynamic_delete_simple(path);
f_macro_string_dynamic_delete_simple(buffer);
if (status == f_status_set_error(f_incomplete_utf_on_stop)) {
- fl_color_print(f_standard_error, data.context.error, data.context.reset, "ENCODING ERROR: error occurred on invalid UTF-8 character at stop position (at ");
- fl_color_print(f_standard_error, data.context.notable, data.context.reset, "%d", range.start);
- fl_color_print(f_standard_error, data.context.error, data.context.reset, " of settings file '");
- fl_color_print(f_standard_error, data.context.notable, data.context.reset, "%s", path.string);
- fl_color_print_line(f_standard_error, data.context.error, data.context.reset, "').");
+ if (data.verbosity != fake_verbosity_quiet) {
+ fl_color_print(f_standard_error, data.context.error, data.context.reset, "ENCODING ERROR: error occurred on invalid UTF-8 character at stop position (at ");
+ fl_color_print(f_standard_error, data.context.notable, data.context.reset, "%d", range.start);
+ fl_color_print(f_standard_error, data.context.error, data.context.reset, " of settings file '");
+ fl_color_print(f_standard_error, data.context.notable, data.context.reset, "%s", path.string);
+ fl_color_print_line(f_standard_error, data.context.error, data.context.reset, "').");
+ }
}
else if (status == f_status_set_error(f_incomplete_utf_on_stop)) {
- fl_color_print(f_standard_error, data.context.error, data.context.reset, "ENCODING ERROR: error occurred on invalid UTF-8 character at end of string (at ");
- fl_color_print(f_standard_error, data.context.notable, data.context.reset, "%d", range.start);
- fl_color_print(f_standard_error, data.context.error, data.context.reset, " of settings file '");
- fl_color_print(f_standard_error, data.context.notable, data.context.reset, "%s", path.string);
- fl_color_print_line(f_standard_error, data.context.error, data.context.reset, "').");
+ if (data.verbosity != fake_verbosity_quiet) {
+ fl_color_print(f_standard_error, data.context.error, data.context.reset, "ENCODING ERROR: error occurred on invalid UTF-8 character at end of string (at ");
+ fl_color_print(f_standard_error, data.context.notable, data.context.reset, "%d", range.start);
+ fl_color_print(f_standard_error, data.context.error, data.context.reset, " of settings file '");
+ fl_color_print(f_standard_error, data.context.notable, data.context.reset, "%s", path.string);
+ fl_color_print_line(f_standard_error, data.context.error, data.context.reset, "').");
+ }
}
else {
- fake_print_error(data.context, f_status_set_fine(status), "fll_fss_extended_read", true);
+ fake_print_error(data.context, data.verbosity, f_status_set_fine(status), "fll_fss_extended_read", true);
}
f_macro_fss_objects_delete_simple(objects);
} // for
if (f_status_is_error(status)) {
- fake_print_error(data.context, f_status_set_fine(status), "f_macro_string_dynamic_new", f_true);
+ fake_print_error(data.context, data.verbosity, f_status_set_fine(status), "f_macro_string_dynamic_new", f_true);
f_macro_fss_objects_delete_simple(objects);
f_macro_fss_contents_delete_simple(contents);
if (f_status_is_error(status)) {
if (status == f_status_set_error(f_string_too_large)) {
- fl_color_print(f_standard_error, data.context.error, data.context.reset, "ERROR: a setting in the build settings file '");
- fl_color_print(f_standard_error, data.context.notable, data.context.reset, "%s", path);
- fl_color_print_line(f_standard_error, data.context.error, data.context.reset, "' is too long.");
+ if (data.verbosity != fake_verbosity_quiet) {
+ fl_color_print(f_standard_error, data.context.error, data.context.reset, "ERROR: a setting in the build settings file '");
+ fl_color_print(f_standard_error, data.context.notable, data.context.reset, "%s", path);
+ fl_color_print_line(f_standard_error, data.context.error, data.context.reset, "' is too long.");
+ }
}
else {
- fake_print_error(data.context, f_status_set_fine(status), "fl_string_dynamic_partial_mash", f_true);
+ fake_print_error(data.context, data.verbosity, f_status_set_fine(status), "fl_string_dynamic_partial_mash", f_true);
}
}
}
status = fll_execute_arguments_add(fake_other_operation_build, fake_other_operation_build_length, &arguments);
+ // ensure console color mode is passed to the scripts so that they can also react to color mode.
+ if (!f_status_is_error(status) && data.context.mode != f_color_mode_none) {
+ char argument[3] = { f_console_symbol_disable, 0, 0 };
+
+ if (data.context.mode == f_color_mode_dark) {
+ argument[1] = f_console_standard_short_dark[0];
+ }
+ else if (data.context.mode == f_color_mode_light) {
+ argument[1] = f_console_standard_short_light[0];
+ }
+ else if (data.context.mode == f_color_mode_no_color) {
+ argument[1] = f_console_standard_short_no_color[0];
+ }
+
+ status = fll_execute_arguments_add(argument, 2, &arguments);
+ }
+
+ // ensure verbosity level is passed to the scripts so that they can also react to requested verbosity.
+ if (!f_status_is_error(status) && data.verbosity != fake_verbosity_normal) {
+ char argument[3] = { f_console_symbol_disable, 0, 0 };
+
+ if (data.verbosity == fake_verbosity_quiet) {
+ argument[1] = f_console_standard_short_quiet[0];
+ }
+ else if (data.verbosity == fake_verbosity_verbose) {
+ argument[1] = f_console_standard_short_verbose[0];
+ }
+ else if (data.verbosity == fake_verbosity_debug) {
+ argument[1] = f_console_standard_short_debug[0];
+ }
+
+ status = fll_execute_arguments_add(argument, 2, &arguments);
+ }
+
if (f_status_is_error(status)) {
- fake_print_error(data.context, f_status_set_fine(status), "fll_execute_arguments_add", f_true);
+ fake_print_error(data.context, data.verbosity, f_status_set_fine(status), "fll_execute_arguments_add", f_true);
f_macro_string_dynamics_delete_simple(arguments);
return status;
status = fll_execute_arguments_add_parameter_set(parameter_prefixs, parameter_prefixs_length, parameter_names, parameter_names_length, parameter_values, parameter_values_length, parameters_total, &arguments);
if (f_status_is_error(status)) {
- fake_print_error(data.context, f_status_set_fine(status), "fll_execute_arguments_add_parameter_set", f_true);
+ fake_print_error(data.context, data.verbosity, f_status_set_fine(status), "fll_execute_arguments_add_parameter_set", f_true);
f_macro_string_dynamics_delete_simple(arguments);
return status;
}
if (f_status_is_error(status)) {
- fake_print_error(data.context, f_status_set_fine(status), "fl_string_dynamic_append", f_true);
+ fake_print_error(data.context, data.verbosity, f_status_set_fine(status), "fl_string_dynamic_append", f_true);
f_macro_string_dynamic_delete_simple(path);
return status;
if (f_status_is_error(status)) {
if (f_status_set_fine(status) == f_failure) {
- fl_color_print(f_standard_error, data.context.error, data.context.reset, "ERROR: Failed to execute script: ");
- fl_color_print(f_standard_error, data.context.notable, data.context.reset, "%s", path.string);
- fl_color_print_line(f_standard_error, data.context.error, data.context.reset, ".");
+ if (data.verbosity != fake_verbosity_quiet) {
+ fl_color_print(f_standard_error, data.context.error, data.context.reset, "ERROR: Failed to execute script: ");
+ fl_color_print(f_standard_error, data.context.notable, data.context.reset, "%s", path.string);
+ fl_color_print_line(f_standard_error, data.context.error, data.context.reset, ".");
+ }
}
else {
- fake_print_error(data.context, f_status_set_fine(status), "fll_execute_path", f_true);
+ fake_print_error(data.context, data.verbosity != fake_verbosity_quiet, f_status_set_fine(status), "fll_execute_path", f_true);
}
}
#endif
#ifndef _di_fake_print_error_
- f_return_status fake_print_error(const fl_color_context context, const f_status status, const f_string function, const bool fallback) {
+ f_return_status fake_print_error(const fl_color_context context, const uint8_t verbosity, const f_status status, const f_string function, const bool fallback) {
if (status == f_invalid_parameter) {
- fl_color_print(f_standard_error, context.error, context.reset, "INTERNAL ERROR: Invalid parameter in function ");
- fl_color_print(f_standard_error, context.notable, context.reset, "%s", function);
- fl_color_print_line(f_standard_error, context.error, context.reset, "().");
+ if (verbosity != fake_verbosity_quiet) {
+ fl_color_print(f_standard_error, context.error, context.reset, "INTERNAL ERROR: Invalid parameter in function ");
+ fl_color_print(f_standard_error, context.notable, context.reset, "%s", function);
+ fl_color_print_line(f_standard_error, context.error, context.reset, "().");
+ }
+
return f_none;
}
if (status == f_error_allocation || status == f_error_reallocation) {
- fl_color_print(f_standard_error, context.error, context.reset, "ERROR: Unable to allocate memory in function ");
- fl_color_print(f_standard_error, context.notable, context.reset, "%s", function);
- fl_color_print_line(f_standard_error, context.error, context.reset, "().");
+ if (verbosity != fake_verbosity_quiet) {
+ fl_color_print(f_standard_error, context.error, context.reset, "ERROR: Unable to allocate memory in function ");
+ fl_color_print(f_standard_error, context.notable, context.reset, "%s", function);
+ fl_color_print_line(f_standard_error, context.error, context.reset, "().");
+ }
+
return f_none;
}
- if (fallback) {
+ if (fallback && verbosity != fake_verbosity_quiet) {
fl_color_print(f_standard_error, context.error, context.reset, "UNKNOWN ERROR: (");
fl_color_print(f_standard_error, context.notable, context.reset, "%d", status);
fl_color_print(f_standard_error, context.error, context.reset, ") in function ");
#endif // _di_fake_print_error_
#ifndef _di_fake_print_error_file_
- f_return_status fake_print_error_file(const fl_color_context context, const f_status status, const f_string function, const f_string file_name, const f_string file_or_directory, const bool fallback) {
+ f_return_status fake_print_error_file(const fl_color_context context, const uint8_t verbosity, const f_status status, const f_string function, const f_string file_name, const f_string file_or_directory, const bool fallback) {
if (status == f_file_not_found) {
- fl_color_print(f_standard_error, context.error, context.reset, "ERROR: failed to find file '");
- fl_color_print(f_standard_error, context.notable, context.reset, "%s", file_name);
- fl_color_print_line(f_standard_error, context.error, context.reset, "'.");
+ if (verbosity != fake_verbosity_quiet) {
+ fl_color_print(f_standard_error, context.error, context.reset, "ERROR: failed to find file '");
+ fl_color_print(f_standard_error, context.notable, context.reset, "%s", file_name);
+ fl_color_print_line(f_standard_error, context.error, context.reset, "'.");
+ }
+
return f_none;
}
if (status == f_directory_not_found) {
- fl_color_print(f_standard_error, context.error, context.reset, "ERROR: failed to find directory '");
- fl_color_print(f_standard_error, context.notable, context.reset, "%s", file_name);
- fl_color_print_line(f_standard_error, context.error, context.reset, "'.");
+ if (verbosity != fake_verbosity_quiet) {
+ fl_color_print(f_standard_error, context.error, context.reset, "ERROR: failed to find directory '");
+ fl_color_print(f_standard_error, context.notable, context.reset, "%s", file_name);
+ fl_color_print_line(f_standard_error, context.error, context.reset, "'.");
+ }
+
return f_none;
}
if (status == f_invalid_parameter) {
- fl_color_print(f_standard_error, context.error, context.reset, "INTERNAL ERROR: Invalid parameter when calling ", function, file_name);
- fl_color_print(f_standard_error, context.notable, context.reset, "%s", function);
- fl_color_print(f_standard_error, context.error, context.reset, "() for the %s '", file_or_directory);
- fl_color_print(f_standard_error, context.notable, context.reset, "%s", file_name);
- fl_color_print_line(f_standard_error, context.error, context.reset, "'.");
+ if (verbosity != fake_verbosity_quiet) {
+ fl_color_print(f_standard_error, context.error, context.reset, "INTERNAL ERROR: Invalid parameter when calling ", function, file_name);
+ fl_color_print(f_standard_error, context.notable, context.reset, "%s", function);
+ fl_color_print(f_standard_error, context.error, context.reset, "() for the %s '", file_or_directory);
+ fl_color_print(f_standard_error, context.notable, context.reset, "%s", file_name);
+ fl_color_print_line(f_standard_error, context.error, context.reset, "'.");
+ }
+
return f_none;
}
if (status == f_invalid_name) {
- fl_color_print(f_standard_error, context.error, context.reset, "ERROR: Invalid %s name '", file_or_directory);
- fl_color_print(f_standard_error, context.notable, context.reset, "%s", file_name);
- fl_color_print_line(f_standard_error, context.error, context.reset, "'.");
+ if (verbosity != fake_verbosity_quiet) {
+ fl_color_print(f_standard_error, context.error, context.reset, "ERROR: Invalid %s name '", file_or_directory);
+ fl_color_print(f_standard_error, context.notable, context.reset, "%s", file_name);
+ fl_color_print_line(f_standard_error, context.error, context.reset, "'.");
+ }
+
return f_none;
}
if (status == f_out_of_memory) {
- fl_color_print(f_standard_error, context.error, context.reset, "CRITICAL ERROR: Unable to allocate memory, while trying to access %s '", file_or_directory);
- fl_color_print(f_standard_error, context.notable, context.reset, "%s", file_name);
- fl_color_print_line(f_standard_error, context.error, context.reset, "'.");
+ if (verbosity != fake_verbosity_quiet) {
+ fl_color_print(f_standard_error, context.error, context.reset, "CRITICAL ERROR: Unable to allocate memory, while trying to access %s '", file_or_directory);
+ fl_color_print(f_standard_error, context.notable, context.reset, "%s", file_name);
+ fl_color_print_line(f_standard_error, context.error, context.reset, "'.");
+ }
+
return f_none;
}
if (status == f_number_overflow) {
- fl_color_print(f_standard_error, context.error, context.reset, "ERROR: Overflow while trying to access %s '", file_or_directory);
- fl_color_print(f_standard_error, context.notable, context.reset, "%s", file_name);
- fl_color_print_line(f_standard_error, context.error, context.reset, "'.");
+ if (verbosity != fake_verbosity_quiet) {
+ fl_color_print(f_standard_error, context.error, context.reset, "ERROR: Overflow while trying to access %s '", file_or_directory);
+ fl_color_print(f_standard_error, context.notable, context.reset, "%s", file_name);
+ fl_color_print_line(f_standard_error, context.error, context.reset, "'.");
+ }
+
return f_none;
}
if (status == f_invalid_directory) {
- fl_color_print(f_standard_error, context.error, context.reset, "ERROR: Invalid directory while trying to access %s '", file_or_directory);
- fl_color_print(f_standard_error, context.notable, context.reset, "%s", file_name);
- fl_color_print_line(f_standard_error, context.error, context.reset, "'.");
+ if (verbosity != fake_verbosity_quiet) {
+ fl_color_print(f_standard_error, context.error, context.reset, "ERROR: Invalid directory while trying to access %s '", file_or_directory);
+ fl_color_print(f_standard_error, context.notable, context.reset, "%s", file_name);
+ fl_color_print_line(f_standard_error, context.error, context.reset, "'.");
+ }
+
return f_none;
}
if (status == f_access_denied) {
- fl_color_print(f_standard_error, context.error, context.reset, "ERROR: Access denied while trying to access %s '", file_or_directory);
- fl_color_print(f_standard_error, context.notable, context.reset, "%s", file_name);
- fl_color_print_line(f_standard_error, context.error, context.reset, "'.");
+ if (verbosity != fake_verbosity_quiet) {
+ fl_color_print(f_standard_error, context.error, context.reset, "ERROR: Access denied while trying to access %s '", file_or_directory);
+ fl_color_print(f_standard_error, context.notable, context.reset, "%s", file_name);
+ fl_color_print_line(f_standard_error, context.error, context.reset, "'.");
+ }
+
return f_none;
}
if (status == f_loop) {
- fl_color_print(f_standard_error, context.error, context.reset, "ERROR: Loop while trying to access %s '", file_or_directory);
- fl_color_print(f_standard_error, context.notable, context.reset, "%s", file_name);
- fl_color_print_line(f_standard_error, context.error, context.reset, "'.");
+ if (verbosity != fake_verbosity_quiet) {
+ fl_color_print(f_standard_error, context.error, context.reset, "ERROR: Loop while trying to access %s '", file_or_directory);
+ fl_color_print(f_standard_error, context.notable, context.reset, "%s", file_name);
+ fl_color_print_line(f_standard_error, context.error, context.reset, "'.");
+ }
+
return f_none;
}
- if (fake_print_error(context, status, function, f_false) == f_unknown && fallback) {
+ if (fake_print_error(context, verbosity, status, function, f_false) == f_unknown && fallback && verbosity != fake_verbosity_quiet) {
fl_color_print(f_standard_error, context.error, context.reset, "UNKNOWN ERROR: (");
fl_color_print(f_standard_error, context.notable, context.reset, "%d", status);
fl_color_print(f_standard_error, context.error, context.reset, ") occurred for %s '", file_or_directory);
#endif // _di_fake_print_error_file_
#ifndef _di_fake_print_error_parameter_missing_value_
- void fake_print_error_parameter_missing_value(const fl_color_context context, const f_string parameter) {
- fl_color_print(f_standard_error, context.error, context.reset, "ERROR: The parameter '");
- fl_color_print(f_standard_error, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, parameter);
- fl_color_print_line(f_standard_error, context.error, context.reset, "' was specified, but no value was given.");
+ void fake_print_error_parameter_missing_value(const fl_color_context context, const uint8_t verbosity, const f_string parameter) {
+ if (verbosity != fake_verbosity_quiet) {
+ fl_color_print(f_standard_error, context.error, context.reset, "ERROR: The parameter '");
+ fl_color_print(f_standard_error, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, parameter);
+ fl_color_print_line(f_standard_error, context.error, context.reset, "' was specified, but no value was given.");
+ }
}
#endif // _di_fake_print_error_parameter_missing_value_
#ifndef _di_fake_print_error_parameter_too_many_
- void fake_print_error_parameter_too_many(const fl_color_context context, const f_string parameter) {
- fl_color_print(f_standard_error, context.error, context.reset, "ERROR: the parameter '");
- fl_color_print(f_standard_error, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, parameter);
- fl_color_print_line(f_standard_error, context.error, context.reset, "' specified too many times.");
+ void fake_print_error_parameter_too_many(const fl_color_context context, const uint8_t verbosity, const f_string parameter) {
+ if (verbosity != fake_verbosity_quiet) {
+ fl_color_print(f_standard_error, context.error, context.reset, "ERROR: the parameter '");
+ fl_color_print(f_standard_error, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, parameter);
+ fl_color_print_line(f_standard_error, context.error, context.reset, "' specified too many times.");
+ }
}
#endif // _di_fake_print_error_parameter_too_many_
for (uint8_t i = 0; i < total; i++) {
if (data->parameters[parameter_ids[i]].total > 1) {
- fl_color_print(f_standard_error, data->context.error, data->context.reset, "ERROR: the operation '");
- fl_color_print(f_standard_error, data->context.notable, data->context.reset, "%s", parameter_names[i]);
- fl_color_print_line(f_standard_error, data->context.error, data->context.reset, "' specified too many times.");
+ if (data->verbosity != fake_verbosity_quiet) {
+ fl_color_print(f_standard_error, data->context.error, data->context.reset, "ERROR: the operation '");
+ fl_color_print(f_standard_error, data->context.notable, data->context.reset, "%s", parameter_names[i]);
+ fl_color_print_line(f_standard_error, data->context.error, data->context.reset, "' specified too many times.");
+ }
return f_status_set_error(f_invalid_parameter);
}
for (uint8_t i = 0; i < total; i++) {
if (data->parameters[parameter_ids[i]].result == f_console_result_found) {
- fake_print_error_parameter_missing_value(data->context, parameter_names[i]);
+ fake_print_error_parameter_missing_value(data->context, data->verbosity, parameter_names[i]);
return f_status_set_error(f_invalid_parameter);
}
else if (data->parameters[parameter_ids[i]].result == f_console_result_additional) {
if (data->parameters[parameter_ids[i]].total > 1) {
- fake_print_error_parameter_too_many(data->context, parameter_names[i]);
+ fake_print_error_parameter_too_many(data->context, data->verbosity, parameter_names[i]);
return f_status_set_error(f_invalid_parameter);
}
if (f_status_is_error(status)) {
if (status == f_status_set_error(f_string_too_large)) {
- fl_color_print(f_standard_error, data->context.error, data->context.reset, "ERROR: the parameter '");
- fl_color_print(f_standard_error, data->context.notable, data->context.reset, "%s%s", f_console_symbol_long_enable, parameter_names[i]);
- fl_color_print_line(f_standard_error, data->context.error, data->context.reset, "' is too long.");
+ if (data->verbosity != fake_verbosity_quiet) {
+ fl_color_print(f_standard_error, data->context.error, data->context.reset, "ERROR: the parameter '");
+ fl_color_print(f_standard_error, data->context.notable, data->context.reset, "%s%s", f_console_symbol_long_enable, parameter_names[i]);
+ fl_color_print_line(f_standard_error, data->context.error, data->context.reset, "' is too long.");
+ }
}
else {
- fake_print_error(data->context, f_status_set_fine(status), "fl_string_append", f_true);
+ fake_print_error(data->context, data->verbosity, f_status_set_fine(status), "fl_string_append", f_true);
}
return status;
}
if (length == 0 || status == f_no_data) {
- fl_color_print(f_standard_error, data->context.error, data->context.reset, "ERROR: the parameter '");
- fl_color_print(f_standard_error, data->context.notable, data->context.reset, "%s%s", f_console_symbol_long_enable, parameter_names[i]);
- fl_color_print_line(f_standard_error, data->context.error, data->context.reset, "' must not be empty and must not contain only whitespace.");
+ if (data->verbosity != fake_verbosity_quiet) {
+ fl_color_print(f_standard_error, data->context.error, data->context.reset, "ERROR: the parameter '");
+ fl_color_print(f_standard_error, data->context.notable, data->context.reset, "%s%s", f_console_symbol_long_enable, parameter_names[i]);
+ fl_color_print_line(f_standard_error, data->context.error, data->context.reset, "' must not be empty and must not contain only whitespace.");
+ }
}
}
else if (parameter_default_lengths[i] > 0) {
f_macro_string_dynamic_resize(status, (*parameter_values[i]), parameter_default_lengths[i]);
if (f_status_is_error(status)) {
- fake_print_error(data->context, f_status_set_fine(status), "f_macro_string_dynamic_resize", f_true);
+ fake_print_error(data->context, data->verbosity, f_status_set_fine(status), "f_macro_string_dynamic_resize", f_true);
return status;
}
}
if (data->parameters[fake_parameter_defines].result == f_console_result_found) {
- fake_print_error_parameter_missing_value(data->context, fake_long_defines);
+ fake_print_error_parameter_missing_value(data->context, data->verbosity, fake_long_defines);
return f_status_set_error(f_invalid_parameter);
}
for (uint8_t i = 0; i < total; i++) {
if (data->parameters[parameter_ids[i]].result == f_console_result_found) {
- fake_print_error_parameter_missing_value(data->context, parameter_names[i]);
+ fake_print_error_parameter_missing_value(data->context, data->verbosity, parameter_names[i]);
return f_status_set_error(f_invalid_parameter);
}
else if (data->parameters[parameter_ids[i]].result == f_console_result_additional) {
if (data->parameters[parameter_ids[i]].additional.used > 1) {
- fake_print_error_parameter_too_many(data->context, parameter_names[i]);
+ fake_print_error_parameter_too_many(data->context, data->verbosity, parameter_names[i]);
return f_status_set_error(f_invalid_parameter);
}
status = fl_console_parameter_to_string_dynamic_directory(arguments.argv[data->parameters[parameter_ids[i]].additional.array[0]], parameter_values[i]);
if (f_status_is_error(status)) {
- if (fake_print_error(data->context, f_status_set_fine(status), "fl_console_parameter_to_string_dynamic_directory", f_false) == f_unknown) {
+ if (fake_print_error(data->context, data->verbosity, f_status_set_fine(status), "fl_console_parameter_to_string_dynamic_directory", f_false) == f_unknown && data->verbosity != fake_verbosity_quiet) {
fl_color_print(f_standard_error, data->context.error, data->context.reset, "ERROR: failed to process parameter '");
fl_color_print(f_standard_error, data->context.notable, data->context.reset, "%s%s", f_console_symbol_long_enable, parameter_names[i]);
fl_color_print_line(f_standard_error, data->context.error, data->context.reset, "'.");
f_macro_string_dynamic_new(status, (*parameter_values[i]), parameter_default_lengths[i]);
if (f_status_is_error(status)) {
- if (fake_print_error(data->context, f_status_set_fine(status), "f_macro_string_dynamic_new", f_false) == f_unknown) {
+ if (fake_print_error(data->context, data->verbosity, f_status_set_fine(status), "f_macro_string_dynamic_new", f_false) == f_unknown && data->verbosity != fake_verbosity_quiet) {
fl_color_print(f_standard_error, data->context.error, data->context.reset, "ERROR: failed to load default for the parameter '");
fl_color_print(f_standard_error, data->context.notable, data->context.reset, "%s%s", f_console_symbol_long_enable, parameter_names[i]);
fl_color_print_line(f_standard_error, data->context.error, data->context.reset, "'.");
if (f_status_is_error(status)) {
if (f_status_set_fine(status) != f_directory_not_found || parameters_required[i]) {
- fake_print_error_file(data->context, f_status_set_fine(status), "f_file_stat", parameter_values[i]->string, "directory", f_true);
+ fake_print_error_file(data->context, data->verbosity, f_status_set_fine(status), "f_file_stat", parameter_values[i]->string, "directory", f_true);
return status;
}
}
if (f_status_is_error(status)) {
if (status == f_status_set_error(f_string_too_large)) {
- fl_color_print(f_standard_error, data->context.error, data->context.reset, "ERROR: the (combined) parameter '");
- fl_color_print(f_standard_error, data->context.notable, data->context.reset, "%s%s", f_console_symbol_long_enable, fake_long_defines);
- fl_color_print_line(f_standard_error, data->context.error, data->context.reset, "' is too long.");
+ if (data->verbosity != fake_verbosity_quiet) {
+ fl_color_print(f_standard_error, data->context.error, data->context.reset, "ERROR: the (combined) parameter '");
+ fl_color_print(f_standard_error, data->context.notable, data->context.reset, "%s%s", f_console_symbol_long_enable, fake_long_defines);
+ fl_color_print_line(f_standard_error, data->context.error, data->context.reset, "' is too long.");
+ }
}
else {
- fake_print_error(data->context, f_status_set_fine(status), "fll_program_parameter_additional_rip_mash", f_true);
+ fake_print_error(data->context, data->verbosity, f_status_set_fine(status), "fll_program_parameter_additional_rip_mash", f_true);
}
return status;
}
if (data->parameters[fake_parameter_mode].result == f_console_result_found) {
- fake_print_error_parameter_missing_value(data->context, fake_long_mode);
+ fake_print_error_parameter_missing_value(data->context, data->verbosity, fake_long_mode);
return f_status_set_error(f_invalid_parameter);
}
else if (data->parameters[fake_parameter_mode].result == f_console_result_additional) {
status = fll_program_parameter_additional_rip(arguments.argv, data->parameters[fake_parameter_mode].additional, &data->mode);
if (f_status_is_error(status)) {
- if (fake_print_error(data->context, f_status_set_fine(status), "fll_program_parameter_additional_rip", f_false) == f_unknown) {
+ if (fake_print_error(data->context, data->verbosity, f_status_set_fine(status), "fll_program_parameter_additional_rip", f_false) == f_unknown && data->verbosity != fake_verbosity_quiet) {
fl_color_print(f_standard_error, data->context.error, data->context.reset, "ERROR: failed to process the parameter '");
fl_color_print(f_standard_error, data->context.notable, data->context.reset, "%s%s", f_console_symbol_long_enable, fake_long_mode);
fl_color_print_line(f_standard_error, data->context.error, data->context.reset, "'.");
status = f_utf_is_word_dash_plus(data->mode.array[i].string + j, width_max);
if (f_status_is_error(status)) {
- if (fake_print_error(data->context, f_status_set_fine(status), "f_utf_is_word_dash_plus", f_false) == f_unknown) {
+ if (fake_print_error(data->context, data->verbosity, f_status_set_fine(status), "f_utf_is_word_dash_plus", f_false) == f_unknown && data->verbosity != fake_verbosity_quiet) {
fl_color_print(f_standard_error, data->context.error, data->context.reset, "ERROR: failed to process the parameter '");
fl_color_print(f_standard_error, data->context.notable, data->context.reset, "%s%s", f_console_symbol_long_enable, fake_long_mode);
fl_color_print_line(f_standard_error, data->context.error, data->context.reset, "'.");
}
if (status == f_false) {
- fl_color_print(f_standard_error, data->context.error, data->context.reset, "ERROR: the '");
- fl_color_print(f_standard_error, data->context.notable, data->context.reset, "%s%s", f_console_symbol_long_enable, fake_long_mode);
- fl_color_print(f_standard_error, data->context.error, data->context.reset, "' parameters value '");
- fl_color_print(f_standard_error, data->context.notable, data->context.reset, "%s", data->mode.array[i].string);
- fl_color_print_line(f_standard_error, data->context.error, data->context.reset, "' contains non-word, non-dash, and non-plus characters.");
+ if (data->verbosity != fake_verbosity_quiet) {
+ fl_color_print(f_standard_error, data->context.error, data->context.reset, "ERROR: the '");
+ fl_color_print(f_standard_error, data->context.notable, data->context.reset, "%s%s", f_console_symbol_long_enable, fake_long_mode);
+ fl_color_print(f_standard_error, data->context.error, data->context.reset, "' parameters value '");
+ fl_color_print(f_standard_error, data->context.notable, data->context.reset, "%s", data->mode.array[i].string);
+ fl_color_print_line(f_standard_error, data->context.error, data->context.reset, "' contains non-word, non-dash, and non-plus characters.");
+ }
return f_status_set_error(f_invalid_parameter);
}