This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/master by this push:
     new a7728e33c8 GROOVY-8162: Update Groovysh to JLine3 (allow state to be 
saved)
a7728e33c8 is described below

commit a7728e33c80f58cf1108f808011e373577dcf1a5
Author: Paul King <[email protected]>
AuthorDate: Mon Jul 21 18:08:58 2025 +1000

    GROOVY-8162: Update Groovysh to JLine3 (allow state to be saved)
---
 .../org/apache/groovy/groovysh/jline/GroovyCommands.groovy   | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git 
a/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/jline/GroovyCommands.groovy
 
b/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/jline/GroovyCommands.groovy
index fc7e938bc4..14b4adb240 100644
--- 
a/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/jline/GroovyCommands.groovy
+++ 
b/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/jline/GroovyCommands.groovy
@@ -499,21 +499,19 @@ class GroovyCommands extends JlineCommandRegistry 
implements CommandRegistry {
 
     private CmdDesc loadCmdDesc(String name) {
         new CmdDesc([
-            new AttributedString("$name"),
-            new AttributedString("$name [options] filename")
+            new AttributedString("$name [options] [filename]")
         ], [], [
             '-? --help'     : doDescription('Displays command help'),
-            '-m --merge'     : doDescription('Merge into existing buffer')
+            '-m --merge'    : doDescription('Merge into existing buffer')
         ])
     }
 
     private CmdDesc saveCmdDesc(String name) {
         new CmdDesc([
-            new AttributedString("$name"),
-            new AttributedString("$name [options] filename")
+            new AttributedString("$name [options] [filename]")
         ], [], [
-            '-? --help'     : doDescription('Displays command help'),
-            '-o --overwrite'     : doDescription('Overwrite existing file')
+            '-? --help'       : doDescription('Displays command help'),
+            '-o --overwrite'  : doDescription('Overwrite existing file')
         ])
     }
 

Reply via email to