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.

Function dmd.cli.Usage.Option.this

ref this (
  string flag,
  string helpText,
  TargetOS os = TargetOS.all,
  bool documented = true
) @safe;

ref this (
  string flag,
  string helpText,
  string ddocText,
  TargetOS os = TargetOS.all,
  bool documented = true
) @safe;

Parameters

NameDescription
flag CLI flag without leading -, e.g. color
helpText detailed description of the flag
os for which TargetOS the flags are applicable
ddocText detailed description of the flag (in Ddoc)
documented whether this option should be shown in the documentation

Authors

Walter Bright

License

Boost License 1.0