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 dmd.globals.Param params,
  ref dmd.root.array.Array!(const(char)*) files
);

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

Returns

true if errors in command line

Authors

Walter Bright

License

Boost License 1.0