Skip to content

Commit 4663861

Browse files
committed
druntime removes arguments prefixed --DRT-
1 parent 645b76e commit 4663861

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spec/function.dd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2980,10 +2980,12 @@ $(H2 $(LNAME2 main, $(D main()) Function))
29802980
one of `void`, `int` and `noreturn`.)
29812981
)
29822982

2983-
$(P If the $(D string[]) parameter is declared, the parameter will hold any
2983+
$(P If the $(D string[]) parameter is declared, the parameter will hold
29842984
arguments passed to the program by the OS. The first argument is typically
29852985
the executable name, followed by any command-line arguments.)
29862986

2987+
$(NOTE The runtime can remove any arguments prefixed `--DRT-`.)
2988+
29872989
$(P The main function must have D linkage.)
29882990

29892991
$(P Attributes may be added as needed, e.g. `@safe`, `@nogc`, `nothrow`, etc.)

0 commit comments

Comments
 (0)