From c1885483120d4b686b2fe95b217dce7248e040b1 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 4 Jun 2012 08:56:00 -0400 Subject: [PATCH] Add --verbose to hb-shape Just turns all --show-* options on. --- util/options.cc | 11 +++++++++++ util/options.hh | 1 - 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/util/options.cc b/util/options.cc index 109a0b4e6..785222be6 100644 --- a/util/options.cc +++ b/util/options.cc @@ -680,6 +680,16 @@ output_options_t::get_file_handle (void) return fp; } +static gboolean +parse_verbose (const char *name G_GNUC_UNUSED, + const char *arg G_GNUC_UNUSED, + gpointer data G_GNUC_UNUSED, + GError **error G_GNUC_UNUSED) +{ + format_options_t *format_opts = (format_options_t *) data; + format_opts->show_text = format_opts->show_unicode = format_opts->show_line_num = TRUE; + return TRUE; +} void format_options_t::add_options (option_parser_t *parser) @@ -692,6 +702,7 @@ format_options_t::add_options (option_parser_t *parser) {"show-text", 0, 0, G_OPTION_ARG_NONE, &this->show_text, "Show input text", NULL}, {"show-unicode", 0, 0, G_OPTION_ARG_NONE, &this->show_unicode, "Show input Unicode codepoints", NULL}, {"show-line-num", 0, 0, G_OPTION_ARG_NONE, &this->show_line_num, "Show line numbers", NULL}, + {"verbose", 0, G_OPTION_FLAG_NO_ARG, G_OPTION_ARG_CALLBACK,(gpointer) &parse_verbose, "Show everything", NULL}, {NULL} }; parser->add_group (entries, diff --git a/util/options.hh b/util/options.hh index 2dcd331ce..6e73a1c6c 100644 --- a/util/options.hh +++ b/util/options.hh @@ -356,7 +356,6 @@ struct format_options_t : option_group_t GString *gs); - protected: hb_bool_t show_glyph_names; hb_bool_t show_positions; hb_bool_t show_clusters;