View source code
Display the source code in dmd/cli.d from which this page was generated on github.
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 local clone.

Variable dmd.cli.Usage.options

Returns all available CLI options

struct Usage
{
  // ...
  immutable(Usage.Option[]) options = [Option("allinst", "generate code for all template instantiations", cast(TargetOS)2147483647), Option("betterC", "omit generating some runtime information and helper functions", cast(TargetOS)2147483647), Option("boundscheck=[on|safeonly|off]", "bounds checks on, in @safe only, or off", cast(TargetOS)2147483647), Option("c", "compile only, do not link", cast(TargetOS)2147483647), Option("check=[assert|bounds|in|invariant|out|switch][=[on|off]]", "enable or disable specific checks", cast(TargetOS)2147483647), Option("check=[h|help|?]", "list information on all available checks", cast(TargetOS)2147483647), Option("checkaction=[D|C|halt|context]", "behavior on assert/boundscheck/finalswitch failure", cast(TargetOS)2147483647), Option("checkaction=[h|help|?]", "list information on all available check actions", cast(TargetOS)2147483647), Option("color", "turn colored console output on", cast(TargetOS)2147483647), Option("color=[on|off|auto]", "force colored console output on or off, or only when not redirected (default)", cast(TargetOS)2147483647), Option("conf=<filename>", "use config file at filename", cast(TargetOS)2147483647), Option("cov", "do code coverage analysis", cast(TargetOS)2147483647), Option("cov=ctfe", "Include code executed during CTFE in coverage report", cast(TargetOS)2147483647), Option("cov=<nnn>", "require at least nnn% code coverage", cast(TargetOS)2147483647), Option("D", "generate documentation", cast(TargetOS)2147483647), Option("Dd<directory>", "write documentation file to directory", cast(TargetOS)2147483647), Option("Df<filename>", "write documentation file to filename", cast(TargetOS)2147483647), Option("d", "silently allow deprecated features and symbols", cast(TargetOS)2147483647), Option("de", "issue an error when deprecated features or symbols are used (halt compilation)", cast(TargetOS)2147483647), Option("dw", "issue a message when deprecated features or symbols are used (default)", cast(TargetOS)2147483647), Option("debug", "compile in debug code", cast(TargetOS)2147483647), Option("debug=<level>", "compile in debug code <= level", cast(TargetOS)2147483647), Option("debug=<ident>", "compile in debug code identified by ident", cast(TargetOS)2147483647), Option("debuglib=<name>", "set symbolic debug library to name", cast(TargetOS)2147483647), Option("defaultlib=<name>", "set default library to name", cast(TargetOS)2147483647), Option("deps", "print module dependencies (imports/file/version/debug/lib)", cast(TargetOS)2147483647), Option("deps=<filename>", "write module dependencies to filename (only imports)", cast(TargetOS)2147483647), Option("extern-std=<standard>", "set C++ name mangling compatibility with <standard>", cast(TargetOS)2147483647), Option("extern-std=[h|help|?]", "list all supported standards", cast(TargetOS)2147483647), Option("fPIC", "generate position independent code", cast(TargetOS)2147483641), Option("g", "add symbolic debug info", cast(TargetOS)2147483647), Option("gf", "emit debug info for all referenced types", cast(TargetOS)2147483647), Option("gs", "always emit stack frame", cast(TargetOS)2147483647), Option("gx", "add stack stomp code", cast(TargetOS)2147483647), Option("H", "generate 'header' file", cast(TargetOS)2147483647), Option("Hd=<directory>", "write 'header' file to directory", cast(TargetOS)2147483647), Option("Hf=<filename>", "write 'header' file to filename", cast(TargetOS)2147483647), Option("HC[=[silent|verbose]]", "generate C++ 'header' file", cast(TargetOS)2147483647), Option("HC=[?|h|help]", "list available modes for C++ 'header' file generation", cast(TargetOS)2147483647), Option("HCd=<directory>", "write C++ 'header' file to directory", cast(TargetOS)2147483647), Option("HCf=<filename>", "write C++ 'header' file to filename", cast(TargetOS)2147483647), Option("-help", "print help and exit", cast(TargetOS)2147483647), Option("I=<directory>", "look for imports also in directory", cast(TargetOS)2147483647), Option("i[=<pattern>]", "include imported modules in the compilation", cast(TargetOS)2147483647), Option("ignore", "ignore unsupported pragmas", cast(TargetOS)2147483647), Option("inline", "do function inlining", cast(TargetOS)2147483647), Option("J=<directory>", "look for string imports also in directory", cast(TargetOS)2147483647), Option("L=<linkerflag>", "pass linkerflag to link", cast(TargetOS)2147483647), Option("lib", "generate library rather than object files", cast(TargetOS)2147483647), Option("lowmem", "enable garbage collection for the compiler", cast(TargetOS)2147483647), Option("m32", "generate 32 bit code", cast(TargetOS)2147483615), Option("m32mscoff", "generate 32 bit code and write MS-COFF object files", cast(TargetOS)2), Option("m64", "generate 64 bit code", cast(TargetOS)2147483647), Option("main", "add default main() (e.g. for unittesting)", cast(TargetOS)2147483647), Option("man", "open web browser on manual page", cast(TargetOS)2147483647), Option("map", "generate linker .map file", cast(TargetOS)2147483647), Option("mcpu=<id>", "generate instructions for architecture identified by 'id'", cast(TargetOS)2147483647), Option("mcpu=[h|help|?]", "list all architecture options", cast(TargetOS)2147483647), Option("mixin=<filename>", "expand and save mixins to file specified by <filename>", cast(TargetOS)2147483647), Option("mscrtlib=<libname>", "MS C runtime library to reference from main/WinMain/DllMain", cast(TargetOS)2), Option("mv=<package.module>=<filespec>", "use <filespec> as source file for <package.module>", cast(TargetOS)2147483647), Option("noboundscheck", "no array bounds checking (deprecated, use -boundscheck=off)", cast(TargetOS)2147483647), Option("O", "optimize", cast(TargetOS)2147483647), Option("o-", "do not write object file", cast(TargetOS)2147483647), Option("od=<directory>", "write object & library files to directory", cast(TargetOS)2147483647), Option("of=<filename>", "name output file to filename", cast(TargetOS)2147483647), Option("op", "preserve source path for output files", cast(TargetOS)2147483647), Option("preview=<name>", "enable an upcoming language change identified by 'name'", cast(TargetOS)2147483647), Option("preview=[h|help|?]", "list all upcoming language changes", cast(TargetOS)2147483647), Option("profile", "profile runtime performance of generated code", cast(TargetOS)2147483647), Option("profile=gc", "profile runtime allocations", cast(TargetOS)2147483647), Option("release", "compile release version", cast(TargetOS)2147483647), Option("revert=<name>", "revert language change identified by 'name'", cast(TargetOS)2147483647), Option("revert=[h|help|?]", "list all revertable language changes", cast(TargetOS)2147483647), Option("run <srcfile>", "compile, link, and run the program srcfile", cast(TargetOS)2147483647), Option("shared", "generate shared library (DLL)", cast(TargetOS)2147483647), Option("transition=<name>", "help with language change identified by 'name'", cast(TargetOS)2147483647), Option("transition=[h|help|?]", "list all language changes", cast(TargetOS)2147483647), Option("unittest", "compile in unit tests", cast(TargetOS)2147483647), Option("v", "verbose", cast(TargetOS)2147483647), Option("vcolumns", "print character (column) numbers in diagnostics", cast(TargetOS)2147483647), Option("verror-style=[digitalmars|gnu]", "set the style for file/line number annotations on compiler messages", cast(TargetOS)2147483647), Option("verrors=<num>", "limit the number of error messages (0 means unlimited)", cast(TargetOS)2147483647), Option("verrors=context", "show error messages with the context of the erroring source line", cast(TargetOS)2147483647), Option("verrors=spec", "show errors from speculative compiles such as __traits(compiles,...)", cast(TargetOS)2147483647), Option("-version", "print compiler version and exit", cast(TargetOS)2147483647), Option("version=<level>", "compile in version code >= level", cast(TargetOS)2147483647), Option("version=<ident>", "compile in version code identified by ident", cast(TargetOS)2147483647), Option("vgc", "list all gc allocations including hidden ones", cast(TargetOS)2147483647), Option("vtls", "list all variables going into thread local storage", cast(TargetOS)2147483647), Option("vtemplates=[list-instances]", "list statistics on template instantiations", cast(TargetOS)2147483647), Option("w", "warnings as errors (compilation will halt)", cast(TargetOS)2147483647), Option("wi", "warnings as messages (compilation will continue)", cast(TargetOS)2147483647), Option("X", "generate JSON file", cast(TargetOS)2147483647), Option("Xf=<filename>", "write JSON file to filename", cast(TargetOS)2147483647), Option("Xcc=<driverflag>", "pass driverflag to linker driver (cc)", cast(TargetOS)2147483645)];
  // ...
}

Authors

Walter Bright

License

Boost License 1.0