Commit b4edec79 authored by Matthias Clasen's avatar Matthias Clasen

test-break: Add a legend

Use test-break --help to get a legend for the
codes used in the output.
parent 97778b40
Pipeline #203090 failed with stages
in 1 minute and 43 seconds
...@@ -315,12 +315,27 @@ main (int argc, char *argv[]) ...@@ -315,12 +315,27 @@ main (int argc, char *argv[])
/* allow to easily generate expected output for new test cases */ /* allow to easily generate expected output for new test cases */
if (argc > 1) if (argc > 1)
{
if (strcmp (argv[1], "--help") == 0)
{
g_print ("test-break uses the following symbols for log attrs\n\n");
g_print ("Breaks: Words:\n"
" L - mandatory break b - word boundary\n"
" l - line break s - word start\n"
" c - char break e - word end\n"
"\n"
"Whitespace: Sentences:\n"
" x - expandable space s - sentence start\n"
" w - whitespace e - sentence end\n");
}
else
{ {
GString *string; GString *string;
string = g_string_sized_new (0); string = g_string_sized_new (0);
test_file (argv[1], string); test_file (argv[1], string);
g_print ("%s", string->str); g_print ("%s", string->str);
}
return 0; return 0;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment