[pango/matthiasc/for-master: 1/2] test-break: Make help output work again




commit b9af025b97e80e3c520eaf2a19fc35883d5f2f35
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun May 9 21:26:37 2021 -0400

    test-break: Make help output work again
    
    test-break has a helpful text that explains
    the maining of the output. Unfortunately,
    the --help option is taken by g_test_init(),
    so make this available with --legend.

 tests/test-break.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/tests/test-break.c b/tests/test-break.c
index 413fd088..51074d80 100644
--- a/tests/test-break.c
+++ b/tests/test-break.c
@@ -322,7 +322,7 @@ main (int argc, char *argv[])
   /* allow to easily generate expected output for new test cases */
   if (argc > 1)
     {
-      if (strcmp (argv[1], "--help") == 0)
+      if (strcmp (argv[1], "--legend") == 0)
         {
           g_print ("test-break uses the following symbols for log attrs\n\n");
           g_print ("Breaks:                 Words:\n"
@@ -331,8 +331,9 @@ main (int argc, char *argv[])
                    " c - char break          e - word end\n"
                    "\n"
                    "Whitespace:             Sentences:\n"
-                   " x - expandable space    s - sentence start\n"
-                   " w - whitespace          e - sentence end\n");
+                   " x - expandable space    b - sentence boundary\n"
+                   " w - whitespace          s - sentence start\n"
+                   "                         e - sentence end\n");
         }
       else
         {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]