Skip to content

Commit 185de4d

Browse files
committed
Changes text to current raku -h text
Which includes a good amount of stuff...
1 parent d685762 commit 185de4d

File tree

1 file changed

+59
-23
lines changed

1 file changed

+59
-23
lines changed

doc/Programs/04-running-raku.pod6

Lines changed: 59 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -21,29 +21,65 @@ option, compiles the given program and by default also executes the
2121
compiled code.
2222
2323
=begin code :lang<usage>
24-
-c check syntax only (runs BEGIN and CHECK blocks)
25-
--doc extract documentation and print it as text
26-
-e program one line of program, strict is enabled by default
27-
-h, --help display this help text
28-
-n run program once for each line of input
29-
-p same as -n, but also print $_ at the end of lines
30-
-I path adds the path to the module search path
31-
-M module loads the module prior to running the program
32-
--target=[stage] specify compilation stage to emit
33-
--optimize=[level] use the given level of optimization (0..3)
34-
--encoding=[mode] specify string encoding mode
35-
-o, --output=[name] specify name of output file
36-
-v, --version display version information
37-
--stagestats display time spent in the compilation stages
38-
--ll-exception display a low level backtrace on errors
39-
--profile write profile information as HTML file (MoarVM)
40-
--profile-filename provide a different filename (also allows .json)
41-
--doc=[module] Use Pod::To::[module] to render inline documentation.
42-
--full-cleanup try to free all memory and exit cleanly (MoarVM)
43-
--debug-port=port listen for incoming debugger connections (MoarVM)
44-
--debug-suspend pause execution at the entry point (MoarVM)
45-
--tracing output a line to stderr on every interpreter instr (only
46-
if enabled in MoarVM)
24+
- read program source from STDIN or start REPL if a TTY
25+
-c check syntax only (runs BEGIN and CHECK blocks)
26+
--doc extract documentation and print it as text
27+
-e program one line of program, strict is enabled by default
28+
-h, --help display this help text
29+
-n run program once for each line of input
30+
-p same as -n, but also print $_ at the end of lines
31+
-I path adds the path to the module search path
32+
-M module loads the module prior to running the program
33+
--target=stage specify compilation stage to emit
34+
--optimize=level use the given level of optimization (0..3)
35+
--rakudo-home=path Override the path of the Rakudo runtime files
36+
-o, --output=name specify name of output file
37+
-v, --version display version information
38+
-V print configuration summary
39+
--stagestats display time spent in the compilation stages
40+
--ll-exception display a low level backtrace on errors
41+
--doc=module use Pod::To::[module] to render inline documentation
42+
--repl-mode=interactive|non-interactive
43+
when running without "-e" or filename arguments,
44+
a REPL is started. By default, if STDIN is a TTY,
45+
"interactive" REPL is started that shows extra messages and
46+
prompts, otherwise a "non-interactive" mode is used where
47+
STDIN is read entirely and evaluated as if it were a program,
48+
without any extra output (in fact, no REPL machinery is even
49+
loaded). This option allows to bypass TTY detection and
50+
force one of the REPL modes.
51+
--profile[=name] write profile information to a file
52+
Extension controls format:
53+
.json outputs in JSON
54+
.sql outputs in SQL
55+
any other extension outputs in HTML
56+
--profile-compile[=name]
57+
write compile-time profile information to a file
58+
Extension controls format:
59+
.json outputs in JSON
60+
.sql outputs in SQL
61+
any other extension outputs in HTML
62+
--profile-kind[=name]
63+
choose the type of profile to generate
64+
instrumented - performance measurements (default)
65+
heap - record heap snapshots after every garbage
66+
collector run
67+
--profile-filename=name
68+
provide a different filename for profile.
69+
Extension controls format:
70+
.json outputs in JSON
71+
.sql outputs in SQL
72+
any other extension outputs in HTML
73+
This option will go away in a future Rakudo release
74+
--profile-stage=stage
75+
write profile information for the given compilation
76+
stage to a file. Use --profile-compile to set name
77+
and format
78+
--full-cleanup try to free all memory and exit cleanly
79+
--debug-port=port listen for incoming debugger connections
80+
--debug-suspend pause execution at the entry point
81+
--tracing output a line to stderr on every interpreter instr (only if
82+
enabled in MoarVM)
4783
=end code
4884
4985
Note that only Boolean single-letter options may be bundled.

0 commit comments

Comments
 (0)