Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly 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 using
a 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.
Authors:
License:
Source cli.d
Documentation https://dlang.org/phobos/dmd_cli.html
- enum
TargetOS
: ubyte; - Bit decoding of the TargetOS
- @safe bool
isCurrentTargetOS
(TargetOSos
); - Parameters:
TargetOS os
TargetOS to check Returns:true iffos
contains the current targetOS. - static string
capitalize
(stringw
); - Capitalize a the first character of a ASCII string.Parameters:
string w
ASCII i string to capitalize Returns:capitalized string - struct
Usage
; - Contains all available CLI Usage.Options.See Also:
- struct
Option
; - Representation of a CLI
Option
The DDoc description ddoxText is only available when compiled with -version=DdocOptions.- string
flag
; - The CLI flag without leading -, e.g. color
- string
helpText
; - A detailed description of the flag
- TargetOS
os
; - For which TargetOS the flags are applicable
- @safe this(string
flag
, stringhelpText
, TargetOSos
= TargetOS.all, booldocumented
= true);
@safe this(stringflag
, stringhelpText
, stringddocText
, TargetOSos
= TargetOS.all, booldocumented
= true); - Parameters:
string flag
CLI flag without leading -, e.g. color string helpText
detailed description of the flag TargetOS os
for which TargetOS the flags are applicable string ddocText
detailed description of the flag (in Ddoc) bool documented
whether this option should be shown in the documentation
- static immutable Option[]
options
; - Returns all available CLI options
- struct
Feature
; - Representation of a CLI feature
- string
name
; - name of the feature
- bool
deprecated_
; - 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
- struct
CLIUsage
; - Formats the Options for CLI printing.
- static @safe string
usage
(); - Returns a string of all available CLI options for the current targetOS. Options are separated by newlines.
- enum string
mcpuUsage
; - CPU architectures supported -mcpu=id
- enum string
transitionUsage
; - Language changes listed by -transition=id
- enum string
revertUsage
; - Language changes listed by -revert
- enum string
previewUsage
; - Language previews listed by -preview
- enum string
checkActionUsage
; - Options supported by -checkaction=
- enum string
checkUsage
; - Options supported by -check
- enum string
externStdUsage
; - Options supported by -extern-std
- enum string
hcUsage
; - Options supported by -HC
- enum string
gdwarfUsage
; - Options supported by -gdwarf
Copyright © 1999-2024 by the D Language Foundation | Page generated by
Ddoc on Sun Nov 17 01:06:30 2024