Movatterモバイル変換


[0]ホーム

URL:


D Logo
Menu
Search

Library Reference

version 2.112.0

overview

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 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 theonline documentation and MAN pages.
Authors:
Walter Bright
License:
Boost License 1.0

Sourcecli.d

Documentationhttps://dlang.org/phobos/dmd_cli.html

Coveragehttps://codecov.io/gh/dlang/dmd/src/master/compiler/src/dmd/cli.d

enumTargetOS: ubyte;
Bit decoding of the TargetOS
@safe boolisCurrentTargetOS(TargetOSos);
Checks whetheros is the currentTargetOS.ForTargetOS.all it will always return true.
Parameters:
TargetOSosTargetOS to check
Returns:
true iffos contains the current targetOS.
static stringcapitalize(stringw);
Capitalize a the first character of a ASCII string.
Parameters:
stringwASCII i string to capitalize
Returns:
capitalized string
structUsage;
Contains all available CLIUsage.Options.
See Also:
structOption;
Representation of a CLIOption
The DDoc descriptionddoxText is only available when compiled with-version=DdocOptions.
stringflag;
The CLI flag without leading-, e.g.color
stringhelpText;
A detailed description of the flag
TargetOSos;
For whichTargetOS the flags are applicable
@safe this(stringflag, stringhelpText, TargetOSos = TargetOS.all, booldocumented = true);

@safe this(stringflag, stringhelpText, stringddocText, TargetOSos = TargetOS.all, booldocumented = true);
Parameters:
stringflagCLI flag without leading-, e.g.color
stringhelpTextdetailed description of the flag
TargetOSosfor whichTargetOS the flags are applicable
stringddocTextdetailed description of the flag (in Ddoc)
booldocumentedwhether this option should be shown in the documentation
static immutable Option[]options;
Returns all available CLI options
structFeature;
Representation of a CLI feature
stringname;
name of the feature
booldeprecated_;
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
structCLIUsage;
Formats theOptions for CLI printing.
static @safe stringusage();
Returns a string of all available CLI options for the current targetOS. Options are separated by newlines.
enum stringmcpuUsage;
CPU architectures supported -mcpu=id
enum stringtransitionUsage;
Language changes listed by -transition=id
enum stringrevertUsage;
Language changes listed by -revert
enum stringpreviewUsage;
Language previews listed by -preview
enum stringcheckActionUsage;
Options supported by -checkaction=
enum stringcheckUsage;
Options supported by -check
enum stringexternStdUsage;
Options supported by -extern-std
enum stringhcUsage;
Options supported by -HC
enum stringgdwarfUsage;
Options supported by -gdwarf
Copyright © 1999-2026 by theD Language Foundation | Page generated byDdoc on Sat Feb 21 00:04:52 2026

[8]ページ先頭

©2009-2026 Movatter.jp