Skip to content

Commit 16a20c0

Browse files
committed
Document --repl-mode cmd opt
Impl: rakudo/rakudo@93e599dbf2 Raku/nqp@943f7f757c
1 parent 50e3df0 commit 16a20c0

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

doc/Programs/00-running.pod6

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
1212
=head1 DESCRIPTION
1313
14-
With no arguments, enters a REPL. With a C<[programfile]> or the C<-e>
15-
option, compiles the given program and, by default, also executes the
16-
compiled code.
14+
With no arguments, enters a REPL (see --repl-mode option).
15+
With a "[programfile]" or the "-e" option, compiles the given program
16+
and, by default, also executes the compiled code.
1717
1818
=begin code :skip-test
1919
@@ -46,6 +46,15 @@ compiled code.
4646
any other extension outputs in HTML
4747
--doc=module use Pod::To::[module] to render inline documentation
4848
49+
--repl-mode=interactive|non-interactive
50+
when running without "-e" or filename arguments,
51+
a REPL is started. By default, if STDIN is a TTY,
52+
"interactive" REPL is started that shows extra messages and
53+
prompts, otherwise a "non-interactive" mode is used where
54+
STDIN is read entirely and evaluated as if it were a program,
55+
without any extra output (in fact, no REPL machinery is even
56+
loaded). This option allows to bypass TTY detection and
57+
force one of the REPL modes.
4958
=end code
5059
5160
Note that only boolean single-letter options may be bundled.

0 commit comments

Comments
 (0)