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 5504e0c298 GROOVY-8162: Update Groovysh to JLine3 (document /unsetopt) 5504e0c298 is described below commit 5504e0c2986b26b9badf9a22e38e9cc87712c099 Author: Paul King <pa...@asert.com.au> AuthorDate: Mon Aug 4 21:55:55 2025 +1000 GROOVY-8162: Update Groovysh to JLine3 (document /unsetopt) --- .../groovy-groovysh/src/spec/doc/groovysh.adoc | 70 ++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/subprojects/groovy-groovysh/src/spec/doc/groovysh.adoc b/subprojects/groovy-groovysh/src/spec/doc/groovysh.adoc index 64017592c2..fcaeb248b6 100644 --- a/subprojects/groovy-groovysh/src/spec/doc/groovysh.adoc +++ b/subprojects/groovy-groovysh/src/spec/doc/groovysh.adoc @@ -593,6 +593,17 @@ saved into the `.groovy/groovysh.ser` file in the user home directory. Set options. +---- +groovy> /setopt -? +setopt - set options +Usage: setopt [-m] option ... +setopt +-? --help Displays command help +-m Use pattern matching +---- + +If no option is given, the current set options are displayed. + ---- groovy> /setopt disable-event-expansion @@ -602,6 +613,8 @@ no-empty-word-options groovy> ---- +See also `/unsetopt` to unset options. + [[GroovyShell-setvar]] ==== `/setvar` @@ -669,6 +682,63 @@ Usage: ttop [OPTIONS] -n --nthreads=NTHREADS Only display up to NTHREADS threads ---- +[[GroovyShell-unsetopt]] +==== `/unsetopt` + +Unset options. + +---- +groovy> /unsetopt -? +unsetopt - unset options +Usage: unsetopt [-m] option ... + unsetopt + -? --help Displays command help + -m Use pattern matching +---- + +If no option is given, the current unset options are displayed. + +---- +groovy> /unsetopt +complete-in-word +complete-matcher-camelcase +no-complete-matcher-typo +history-verify +no-history-ignore-space +no-history-ignore-dups +no-history-reduce-blanks +no-history-beep +no-history-incremental +no-history-timestamped +no-auto-group +no-auto-menu +no-auto-list +auto-menu-list +recognize-exact +no-group +group-persist +case-insensitive +list-ambiguous +list-packed +list-rows-first +glob-complete +menu-complete +auto-fresh-line +delay-line-wrap +no-auto-param-slash +no-auto-remove-slash +insert-tab +mouse +disable-highlighter +no-bracketed-paste +erase-line-on-finish +case-insensitive-search +disable-undo +groovy> +---- + +See also `/setopt` to set options. + [[GroovyShell-doc]] ==== `/doc`