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
- enumTargetOS: ubyte;
- Bit decoding of the TargetOS
- @safe boolisCurrentTargetOS(TargetOSos);
- Parameters:TargetOS osTargetOS to check Returns:true iffoscontains the current targetOS.
- static stringcapitalize(stringw);
- Capitalize a the first character of a ASCII string.Parameters:string wASCII i string to capitalize Returns:capitalized string
- structUsage;
- Contains all available CLI Usage.Options.See Also:- structOption;
- Representation of a CLIOptionThe DDoc description ddoxText 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 which TargetOS the flags are applicable
- @safe this(stringflag, stringhelpText, TargetOSos= TargetOS.all, booldocumented= true);
 @safe this(stringflag, stringhelpText, stringddocText, TargetOSos= TargetOS.all, booldocumented= true);
- Parameters:string flagCLI flag without leading -, e.g. color string helpTextdetailed description of the flag TargetOS osfor which TargetOS the flags are applicable string ddocTextdetailed description of the flag (in Ddoc) bool documentedwhether 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 the Options 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-2025 by the D Language Foundation | Page generated by
Ddoc on Mon Mar 31 10:27:47 2025