printf("%c", f_string_eol[0]);
- fll_program_print_help_option(context, iki_read_short_literal, iki_read_long_literal, f_console_symbol_short_enable, f_console_symbol_long_enable, "Print the entire variable instead of the content.");
- fll_program_print_help_option(context, iki_read_short_object, iki_read_long_object, f_console_symbol_short_enable, f_console_symbol_long_enable, " Print the variable name instead of the variable content.");
+ fll_program_print_help_option(context, iki_read_short_content, iki_read_long_content, f_console_symbol_short_enable, f_console_symbol_long_enable, "Print the variable content (default).");
+ fll_program_print_help_option(context, iki_read_short_literal, iki_read_long_literal, f_console_symbol_short_enable, f_console_symbol_long_enable, "Print the entire variable (aka: object, content, and syntax).");
+ fll_program_print_help_option(context, iki_read_short_object, iki_read_long_object, f_console_symbol_short_enable, f_console_symbol_long_enable, " Print the variable name (aka: object).");
fll_program_print_help_option(context, iki_read_short_total, iki_read_long_total, f_console_symbol_short_enable, f_console_symbol_long_enable, " Print the total number of variables.");
printf("%c", f_string_eol[0]);
status = F_status_set_error(F_parameter);
}
+ if (data->parameters[iki_read_parameter_content].result == f_console_result_found) {
+ if (data->verbosity != iki_read_verbosity_quiet) {
+ fprintf(f_type_error, "%c", f_string_eol[0]);
+ fl_color_print(f_type_error, data->context.error, data->context.reset, "ERROR: Cannot specify the '");
+ fl_color_print(f_type_error, data->context.notable, data->context.reset, "%s%s", f_console_symbol_long_enable, iki_read_long_literal);
+ fl_color_print(f_type_error, data->context.error, data->context.reset, "' parameter with the '");
+ fl_color_print(f_type_error, data->context.notable, data->context.reset, "%s%s", f_console_symbol_long_enable, iki_read_long_content);
+ fl_color_print_line(f_type_error, data->context.error, data->context.reset, "' parameter.");
+ }
+
+ status = F_status_set_error(F_parameter);
+ }
+
if (data->parameters[iki_read_parameter_total].result == f_console_result_found) {
if (data->verbosity != iki_read_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
data->mode = iki_read_mode_literal;
}
else if (data->parameters[iki_read_parameter_object].result == f_console_result_found) {
+ if (data->parameters[iki_read_parameter_content].result == f_console_result_found) {
+ if (data->verbosity != iki_read_verbosity_quiet) {
+ fprintf(f_type_error, "%c", f_string_eol[0]);
+ fl_color_print(f_type_error, data->context.error, data->context.reset, "ERROR: Cannot specify the '");
+ fl_color_print(f_type_error, data->context.notable, data->context.reset, "%s%s", f_console_symbol_long_enable, iki_read_long_object);
+ fl_color_print(f_type_error, data->context.error, data->context.reset, "' parameter with the '");
+ fl_color_print(f_type_error, data->context.notable, data->context.reset, "%s%s", f_console_symbol_long_enable, iki_read_long_content);
+ fl_color_print_line(f_type_error, data->context.error, data->context.reset, "' parameter.");
+ }
+
+ status = F_status_set_error(F_parameter);
+ }
+
if (data->parameters[iki_read_parameter_total].result == f_console_result_found) {
if (data->verbosity != iki_read_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
data->mode = iki_read_mode_total;
}
else {
+ // this is the default behavior, so there is no reason to check for the -c/--content parameter.
data->mode = iki_read_mode_content;
}
};
#define iki_read_short_at "a"
+ #define iki_read_short_content "c"
#define iki_read_short_line "l"
#define iki_read_short_literal "L"
#define iki_read_short_name "n"
#define iki_read_short_whole "w"
#define iki_read_long_at "at"
+ #define iki_read_long_content "content"
#define iki_read_long_line "line"
#define iki_read_long_literal "literal"
#define iki_read_long_name "name"
iki_read_parameter_version,
iki_read_parameter_at,
+ iki_read_parameter_content,
iki_read_parameter_line,
iki_read_parameter_literal,
iki_read_parameter_name,
f_console_parameter_t_initialize(f_console_standard_short_verbose, f_console_standard_long_verbose, 0, 0, f_console_type_inverse), \
f_console_parameter_t_initialize(f_console_standard_short_version, f_console_standard_long_version, 0, 0, f_console_type_inverse), \
f_console_parameter_t_initialize(iki_read_short_at, iki_read_long_at, 0, 1, f_console_type_normal), \
+ f_console_parameter_t_initialize(iki_read_short_content, iki_read_long_content, 0, 0, f_console_type_normal), \
f_console_parameter_t_initialize(iki_read_short_line, iki_read_long_line, 0, 1, f_console_type_normal), \
f_console_parameter_t_initialize(iki_read_short_literal, iki_read_long_literal, 0, 0, f_console_type_normal), \
f_console_parameter_t_initialize(iki_read_short_name, iki_read_long_name, 0, 1, f_console_type_normal), \
f_console_parameter_t_initialize(iki_read_short_total, iki_read_long_total, 0, 0, f_console_type_normal), \
}
- #define iki_read_total_parameters 15
+ #define iki_read_total_parameters 16
#endif // _di_iki_read_defines_
#ifndef _di_iki_read_substitution_t_