View source code
Display the source code in dmd/mars.d from which thispage was generated on github.
Report a bug
If you spot a problem with this page, click here to create aBugzilla 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 usinglocal 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,
  ref dmd.dmdparams.DMDparams driverParams,
  ErrorSink eSink
);

Prints message(s) if there are errors.

Parameters

NameDescription
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
driverParams even more things to set
eSink error sink

Returns

true if errors in command line

Authors

Walter Bright

License

Boost License 1.0