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 7f9061fcc1 fix usage for /grep
7f9061fcc1 is described below
commit 7f9061fcc15cee5e72ea963d7bbae8c36d6a0d41
Author: Paul King <[email protected]>
AuthorDate: Mon Aug 25 20:19:26 2025 +1000
fix usage for /grep
---
.../groovy/org/apache/groovy/groovysh/jline/GroovyPosixCommands.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/jline/GroovyPosixCommands.java
b/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/jline/GroovyPosixCommands.java
index 5ee835ddeb..778d22bc9c 100644
---
a/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/jline/GroovyPosixCommands.java
+++
b/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/jline/GroovyPosixCommands.java
@@ -633,8 +633,8 @@ public class GroovyPosixCommands extends PosixCommands {
public static void grep(Context context, Object[] argv) throws Exception {
final String[] usage = {
- "grep - search for PATTERN in each FILE or VARIABLE or standard
input.",
- "Usage: grep [OPTIONS] PATTERN [FILES] [VARIABLES]",
+ "/grep - search for PATTERN in each FILE or VARIABLE or standard
input.",
+ "Usage: /grep [OPTIONS] PATTERN [FILE|VARIABLE ...]",
" -? --help Show help",
" -i --ignore-case Ignore case distinctions",
" -n --line-number Prefix each line with line number
within its input file",