[util] Small tweaks in --help output
This commit is contained in:
parent
c08f1b8903
commit
3e3e1801a5
|
@ -127,6 +127,7 @@ font_options_t::get_font () const
|
||||||
g_string_append_c (s, '/');
|
g_string_append_c (s, '/');
|
||||||
g_string_append (s, supported_font_funcs[i].name);
|
g_string_append (s, supported_font_funcs[i].name);
|
||||||
}
|
}
|
||||||
|
g_string_append_c (s, '\n');
|
||||||
char *p = g_string_free (s, FALSE);
|
char *p = g_string_free (s, FALSE);
|
||||||
fail (false, "Unknown font function implementation `%s'; supported values are: %s; default is %s",
|
fail (false, "Unknown font function implementation `%s'; supported values are: %s; default is %s",
|
||||||
font_funcs,
|
font_funcs,
|
||||||
|
@ -289,7 +290,7 @@ font_options_t::add_options (option_parser_t *parser)
|
||||||
" number. For example:\n"
|
" number. For example:\n"
|
||||||
"\n"
|
"\n"
|
||||||
" \"wght=500\"\n"
|
" \"wght=500\"\n"
|
||||||
" \"slnt=-7.5\"\n";
|
" \"slnt=-7.5\"";
|
||||||
|
|
||||||
GOptionEntry entries2[] =
|
GOptionEntry entries2[] =
|
||||||
{
|
{
|
||||||
|
|
|
@ -176,8 +176,8 @@ text_options_t::add_options (option_parser_t *parser)
|
||||||
GOptionEntry entries[] =
|
GOptionEntry entries[] =
|
||||||
{
|
{
|
||||||
{"text", 0, 0, G_OPTION_ARG_CALLBACK, (gpointer) &parse_text, "Set input text", "string"},
|
{"text", 0, 0, G_OPTION_ARG_CALLBACK, (gpointer) &parse_text, "Set input text", "string"},
|
||||||
{"text-file", 0, 0, G_OPTION_ARG_STRING, &this->text_file, "Set input text file-name\n\n If no text is provided, standard input is used for input.\n", "filename"},
|
{"text-file", 0, 0, G_OPTION_ARG_STRING, &this->text_file, "Set input text file-name", "filename"},
|
||||||
{"unicodes", 'u', 0, G_OPTION_ARG_CALLBACK, (gpointer) &parse_unicodes, "Set input Unicode codepoints", "list of hex numbers"},
|
{"unicodes", 'u', 0, G_OPTION_ARG_CALLBACK, (gpointer) &parse_unicodes, "Set input Unicode codepoints\n\n If no text is provided, standard input is used for input.\n", "list of hex numbers"},
|
||||||
{"text-before", 0, 0, G_OPTION_ARG_STRING, &this->text_before, "Set text context before each line", "string"},
|
{"text-before", 0, 0, G_OPTION_ARG_STRING, &this->text_before, "Set text context before each line", "string"},
|
||||||
{"text-after", 0, 0, G_OPTION_ARG_STRING, &this->text_after, "Set text context after each line", "string"},
|
{"text-after", 0, 0, G_OPTION_ARG_STRING, &this->text_after, "Set text context after each line", "string"},
|
||||||
{nullptr}
|
{nullptr}
|
||||||
|
|
Loading…
Reference in New Issue