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("color", "turn colored console output on", cast(TargetOS)2147483647), Option("color=[on|off]", "force colored console output on or off", 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=<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", cast(TargetOS)2147483647), Option("dw", "show use of deprecated features as warnings (default)", cast(TargetOS)2147483647), Option("de", "show use of deprecated features as errors (halt compilation)", 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("dip25", "implement http://wiki.dlang.org/DIP25", cast(TargetOS)2147483647), Option("dip1000", "implement https://github.com/dlang/DIPs/blob/master/DIPs/DIP1000.md", cast(TargetOS)2147483647), Option("dip1008", "implement https://github.com/dlang/DIPs/blob/master/DIPs/DIP1008.md", 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("-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("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=?", "list all architecture options", cast(TargetOS)2147483647), Option("mscrtlib=<name>", "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("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("run <srcfile>", "compile, link, and run the program srcfile", cast(TargetOS)2147483647), Option("shared", "generate shared library (DLL)", cast(TargetOS)2147483647), Option("transition=<id>", "help with language change identified by 'id'", cast(TargetOS)2147483647), Option("transition=?", "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("verrors=<num>", "limit the number of error messages (0 means unlimited)", 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("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)];
  // ...
}

Authors

Walter Bright

License

Boost License 1.0