dmd.cli
Defines the help texts for the CLI options offered by DMD.
Discussion
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.
License
Source: cli.d
Documentation: https://dlang.org/phobos/dmd_cli.html
-
Declaration
enumTargetOS: ubyte;Bit decoding of the
TargetOS -
Declaration
boolisCurrentTargetOS(TargetOSos);Checks whether
is the current . ForosTargetOS.allit will always returntrue.Parameters
TargetOSosto check
Return Value
trueiffcontains the current targetOS.os -
Declaration
static stringcapitalize(stringw);Capitalize a the first character of a ASCII string.
Parameters
stringwASCII i string to
capitalizeReturn Value
capitalized string
-
Declaration
structUsage;Contains all available CLI s.
See Also
-
Declaration
structOption;Representation of a CLI
OptionDiscussion
The DDoc description
ddoxTextis only available when compiled with-version=DdocOptions.-
Declaration
stringflag;The CLI
flagwithout leading-, e.g.color -
Declaration
stringhelpText;A detailed description of the flag
-
Declaration
TargetOSos;For which
TargetOSthe flags are applicable -
Declaration
this(stringflag, stringhelpText, TargetOSos= TargetOS.all);
this(stringflag, stringhelpText, stringddocText, TargetOSos= TargetOS.all);Parameters
stringflagCLI
flagwithout leading-, e.g.colorstringhelpTextdetailed description of the
flagTargetOSosfor which
TargetOSthe flags are applicablestringddocTextdetailed description of the
flag(in Ddoc)
-
-
Declaration
static immutable Option[]options;Returns all available CLI
options -
Declaration
structFeature;Representation of a CLI feature
-
Declaration
stringname;nameof the feature -
Declaration
booldeprecated_;whether the feature is still in use
-
-
Declaration
static immutable Feature[]transitions;Returns all available
transitions -
Declaration
static immutable Feature[]reverts;Returns all available
reverts -
Declaration
static immutable Feature[]previews;Returns all available
previews
-
-
Declaration
structCLIUsage;Formats the
Optionsfor CLI printing.-
Declaration
static stringusage();Returns a string of all available CLI options for the current targetOS. Options are separated by newlines.
-
Declaration
enum stringmcpuUsage;CPU architectures supported -mcpu=id
-
Declaration
enum stringtransitionUsage;Language changes listed by -transition=id
-
Declaration
enum stringrevertUsage;Language changes listed by -revert
-
Declaration
enum stringpreviewUsage;Language previews listed by -preview
-
Declaration
enum stringcheckActionUsage;Options supported by -checkaction=
-
Declaration
enum stringcheckUsage;Options supported by -check
-
Declaration
enum stringexternStdUsage;Options supported by -extern-std
-
Declaration
enum stringhcUsage;Options supported by -HC
-
Declaration
enum stringgdwarfUsage;Options supported by -gdwarf
-