Skip to content

Commit 532cfc2

Browse files
committed
Document --force-stdin-eval-mode opt
Impl: rakudo/rakudo@9ce896d8bf Raku/nqp@c38cfe87f5
1 parent eac8416 commit 532cfc2

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

doc/Programs/00-running.pod6

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
1212
=head1 DESCRIPTION
1313
14-
With no arguments, enters a REPL. With a C<[programfile]> or the C<-e>
14+
With no arguments, enters a REPL on TTY displays or evals STDIN on non-TTY
15+
(see C<--force-stdin-eval-mode> argument to force one of these behaviors).
16+
With a C<[programfile]> or the C<-e>
1517
option, compiles the given program and, by default, also executes the
1618
compiled code.
1719
@@ -46,6 +48,12 @@ compiled code.
4648
any other extension outputs in HTML
4749
--doc=module use Pod::To::[module] to render inline documentation
4850
51+
--force-stdin-eval-mode=interactive|non-interactive
52+
when running without -e or filename arguments,
53+
do not rely on whether STDIN is a TTY and force the
54+
eval of code from STDIN to be via REPL (interactive)
55+
or without REPL (non-interactive)
56+
4957
=end code
5058
5159
Note that only boolean single-letter options may be bundled.

0 commit comments

Comments
 (0)