summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2012-06-04 08:56:00 -0400
committerBehdad Esfahbod <behdad@behdad.org>2012-06-04 09:09:59 -0400
commitc1885483120d4b686b2fe95b217dce7248e040b1 (patch)
tree67d62321b97927e211f50b2d838a3f07f2677d71 /util
parent9fc7a11469113d31d8095757c4fc038c3427d44a (diff)
Add --verbose to hb-shape
Just turns all --show-* options on.
Diffstat (limited to 'util')
-rw-r--r--util/options.cc11
-rw-r--r--util/options.hh1
2 files changed, 11 insertions, 1 deletions
diff --git a/util/options.cc b/util/options.cc
index 109a0b4e..785222be 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 2dcd331c..6e73a1c6 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;