View source code
Display the source code in dmd/mars.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.mars.parseCommandLine

Parse command line arguments.

bool parseCommandLine (
  ref const(dmd.root.array.Array!(const(char)*)) arguments,
  const(ulong) argc,
  ref Param params,
  ref dmd.root.array.Array!(const(char)*) files,
  ref Target target

Prints message(s) if there are errors.


arguments command line arguments
argc argument count
params set to result of parsing arguments
files set to files pulled from arguments
target more things set to result of parsing arguments


true if errors in command line


Walter Bright


Boost License 1.0