|
11 | 11 |
|
12 | 12 | =head1 DESCRIPTION
|
13 | 13 |
|
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. |
17 | 17 |
|
18 | 18 | =begin code :skip-test
|
19 | 19 |
|
@@ -46,6 +46,15 @@ compiled code.
|
46 | 46 | any other extension outputs in HTML
|
47 | 47 | --doc=module use Pod::To::[module] to render inline documentation
|
48 | 48 |
|
| 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. |
49 | 58 | =end code
|
50 | 59 |
|
51 | 60 | Note that only boolean single-letter options may be bundled.
|
|
0 commit comments