Skip to content

Commit 5504e0c

Browse files
committed
GROOVY-8162: Update Groovysh to JLine3 (document /unsetopt)
1 parent e358e9d commit 5504e0c

File tree

1 file changed

+70
-0
lines changed

1 file changed

+70
-0
lines changed

subprojects/groovy-groovysh/src/spec/doc/groovysh.adoc

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,17 @@ saved into the `.groovy/groovysh.ser` file in the user home directory.
593593
594594
Set options.
595595
596+
----
597+
groovy> /setopt -?
598+
setopt - set options
599+
Usage: setopt [-m] option ...
600+
setopt
601+
-? --help Displays command help
602+
-m Use pattern matching
603+
----
604+
605+
If no option is given, the current set options are displayed.
606+
596607
----
597608
groovy> /setopt
598609
disable-event-expansion
@@ -602,6 +613,8 @@ no-empty-word-options
602613
groovy>
603614
----
604615
616+
See also `/unsetopt` to unset options.
617+
605618
[[GroovyShell-setvar]]
606619
==== `/setvar`
607620
@@ -669,6 +682,63 @@ Usage: ttop [OPTIONS]
669682
-n --nthreads=NTHREADS Only display up to NTHREADS threads
670683
----
671684
685+
[[GroovyShell-unsetopt]]
686+
==== `/unsetopt`
687+
688+
Unset options.
689+
690+
----
691+
groovy> /unsetopt -?
692+
unsetopt - unset options
693+
Usage: unsetopt [-m] option ...
694+
unsetopt
695+
-? --help Displays command help
696+
-m Use pattern matching
697+
----
698+
699+
If no option is given, the current unset options are displayed.
700+
701+
----
702+
groovy> /unsetopt
703+
complete-in-word
704+
complete-matcher-camelcase
705+
no-complete-matcher-typo
706+
history-verify
707+
no-history-ignore-space
708+
no-history-ignore-dups
709+
no-history-reduce-blanks
710+
no-history-beep
711+
no-history-incremental
712+
no-history-timestamped
713+
no-auto-group
714+
no-auto-menu
715+
no-auto-list
716+
auto-menu-list
717+
recognize-exact
718+
no-group
719+
group-persist
720+
case-insensitive
721+
list-ambiguous
722+
list-packed
723+
list-rows-first
724+
glob-complete
725+
menu-complete
726+
auto-fresh-line
727+
delay-line-wrap
728+
no-auto-param-slash
729+
no-auto-remove-slash
730+
insert-tab
731+
mouse
732+
disable-highlighter
733+
no-bracketed-paste
734+
erase-line-on-finish
735+
case-insensitive-search
736+
disable-undo
737+
groovy>
738+
----
739+
740+
See also `/setopt` to set options.
741+
672742
[[GroovyShell-doc]]
673743
==== `/doc`
674744

0 commit comments

Comments
 (0)