[util] Add brief --help descriptions

Part of https://github.com/harfbuzz/harfbuzz/issues/5208
This commit is contained in:
Behdad Esfahbod 2025-03-26 12:33:06 -06:00
parent 3d3f241941
commit 59001aa952
4 changed files with 6 additions and 0 deletions

View file

@ -67,6 +67,7 @@ struct info_t :
void add_options ()
{
set_summary ("Query font information.");
set_description ("Queries font file for various information. If no query option is specified, --show-all is assumed.");
font_options_t::add_options (this);

View file

@ -859,6 +859,7 @@ void
subset_main_t::add_options ()
{
set_summary ("Subset font to specification.");
set_description ("Subsets font file to a specified set of glyphs, Unicode codepoints, or text, design-space limiting, and other reductions.");
face_options_t::add_options (this);

View file

@ -37,6 +37,8 @@ struct shape_output_t : output_options_t<>
void add_options (option_parser_t *parser)
{
parser->set_summary ("Shape text with given font.");
parser->set_description ("Shows results of shaping text with a given font in textual or JSON format.");
output_options_t::add_options (parser, hb_buffer_serialize_list_formats ());
format.add_options (parser);
}

View file

@ -41,6 +41,8 @@ struct view_cairo_t : view_options_t, output_options_t<>
void add_options (option_parser_t *parser)
{
parser->set_summary ("View text with given font.");
parser->set_description ("Shows image of rendering text with a given font in various formats.");
view_options_t::add_options (parser);
output_options_t::add_options (parser, helper_cairo_supported_formats);
}