Menu

- Learn
- Documentation
  - Language Reference
  - Library Reference
  - Command-line Reference
  - Feature Overview
  - Articles
- Downloads
- Packages
- Community
  - Blog
  - Orgs using D
  - Twitter
  - Forums
  - IRC
  - Wiki
  - GitHub
  - Issues
  - Get involved
  - Contributors
  - Foundation
  - Donate
  - Sponsors
- Resources
  - Tour
  - Books
  - Tutorials
  - Tools
  - Editors
  - IDEs
  - Visual D
  - Acknowledgments
  - D Style
  - Glossary
  - Sitemap

Search
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

Compiler implementation of the D programming language.
This modules 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:
Walter Bright
License:
Boost License 1.0

Source cli.d

Documentation https://dlang.org/phobos/dmd_cli.html

Coverage https://codecov.io/gh/dlang/dmd/src/master/src/dmd/cli.d

enum `TargetOS`: int;
  Bit decoding of the `TargetOS`
bool `isCurrentTargetOS`(TargetOS `os`);
  Checks whether `os` is the current TargetOS. For TargetOS.all it will always return `true`.
  Parameters:

  TargetOS `os` | TargetOS to check

  Returns:
  `true` iff `os` contains the current targetOS.
struct `Usage`;
  Contains all available CLI `Usage`.Option">`Usage`.Options.
  See Also:
  `Usage`.Option">`Usage`.Option
  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
    this(string `flag`, string `helpText`, TargetOS `os` = TargetOS.all);
    this(string `flag`, string `helpText`, string `ddocText`, TargetOS `os` = TargetOS.all);
      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)

  static immutable Option[] `options`;
    Returns all available CLI `options`
  struct `Transition`;
    Representation of a CLI transition
    string `bugzillaNumber`;
      bugzilla issue number (if existent)
    string `name`;
      `name` of the transition
  static immutable Transition[] `transitions`;
    Returns all available `transitions`
struct `CLIUsage`;
  Formats the Options for CLI printing.
  static string `usage`();
    Returns a string of all available CLI options for the current targetOS. Options are separated by newlines.
  static string `mcpu`();
    CPU architectures supported -`mcpu`=id
  static string `transitionUsage`();
    Language changes listed by -transition=id

Copyright © 1999-2018 by the D Language Foundation | Page generated by Ddoc on Sat Apr 14 16:39:08 2018