[gimp] app: improve a bit the output for batch interpreters.



commit 3524fe8fa9e131dd5263818b75faf3181a56c957
Author: Jehan <jehan girinstud io>
Date:   Sat Apr 16 23:36:50 2022 +0200

    app: improve a bit the output for batch interpreters.
    
    Specifying the --batch-interpreter option seems like it would really
    help people better understand what is missing.

 app/core/gimp-batch.c | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/app/core/gimp-batch.c b/app/core/gimp-batch.c
index bc20768259..2656fa772f 100644
--- a/app/core/gimp-batch.c
+++ b/app/core/gimp-batch.c
@@ -88,7 +88,7 @@ gimp_batch_run (Gimp         *gimp,
           else
             {
               retval = 64; /* EX_USAGE - command line usage error */
-              g_print ("%s\n%s\n",
+              g_print ("%s\n\n%s\n",
                        _("No batch interpreter specified."),
                        _("Available interpreters are:"));
 
@@ -107,6 +107,9 @@ gimp_batch_run (Gimp         *gimp,
                   g_free (locale_name);
                 }
 
+              g_print ("\n%s\n",
+                       _("Specify one of these interpreters as --batch-interpreter option."));
+
               return retval;
             }
         }
@@ -123,7 +126,7 @@ gimp_batch_run (Gimp         *gimp,
       retval = 69; /* EX_UNAVAILABLE - service unavailable (sysexits.h) */
       g_print (_("The procedure '%s' is not a valid batch interpreter."),
                  batch_interpreter);
-      g_print ("\n%s\n%s\n",
+      g_print ("\n%s\n\n%s\n",
                _("Batch mode disabled."),
                _("Available interpreters are:"));
 
@@ -141,6 +144,10 @@ gimp_batch_run (Gimp         *gimp,
 
           g_free (locale_name);
         }
+
+      g_print ("\n%s\n",
+               _("Specify one of these interpreters as --batch-interpreter option."));
+
       return retval;
     }
 


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