Report a bugIf you spot a problem with this page, click here to create a Bugzilla issue.
Improve this pageQuickly fork, edit online, and submit a pull request for this page.Requires a signed-in GitHub account. This works well for small changes.If you'd like to make larger changes you may want to consider usinga local clone.
dmd.cli
Defines the help texts for the CLI options offered by DMD.
This file is not shared with other compilers which use the DMD front-end. However, this file will be used to generate the
online documentation and MAN pages.
Bit decoding of the TargetOS
@safe bool
isCurrentTargetOS(TargetOS
os);
Checks whether
os is the current
TargetOS.For
TargetOS.all it will always return true.
Returns:true iffos contains the current targetOS.
static string
capitalize(string
w);
Capitalize a the first character of a ASCII string.
Parameters:stringw | ASCII i string to capitalize |
Returns:capitalized string
Representation of a CLIOption
The DDoc descriptionddoxText is only available when compiled with-version=DdocOptions.
The CLI flag without leading-, e.g.color
A detailed description of the flag
For whichTargetOS the flags are applicable
@safe this(string
flag, string
helpText, TargetOS
os = TargetOS.all, bool
documented = true);
@safe this(string
flag, string
helpText, string
ddocText, TargetOS
os = TargetOS.all, bool
documented = true);
Parameters:stringflag | CLI flag without leading-, e.g.color |
stringhelpText | detailed description of the flag |
TargetOSos | for whichTargetOS the flags are applicable |
stringddocText | detailed description of the flag (in Ddoc) |
booldocumented | whether this option should be shown in the documentation |
static immutable Option[]
options;
Returns all available CLI options
Representation of a CLI feature
name of the feature
whether the feature is still in use
static immutable Feature[]
transitions;
Returns all available transitions
static immutable Feature[]
reverts;
Returns all available reverts
static immutable Feature[]
previews;
Returns all available previews
Formats theOptions for CLI printing.
static @safe string
usage();
Returns a string of all available CLI options for the current targetOS. Options are separated by newlines.
CPU architectures supported -mcpu=id
enum string
transitionUsage;
Language changes listed by -transition=id
Language changes listed by -revert
Language previews listed by -preview
enum string
checkActionUsage;
Options supported by -checkaction=
Options supported by -check
enum string
externStdUsage;
Options supported by -extern-std
Options supported by -HC
Options supported by -gdwarf