vibe.d beta banner
get vibe.d
0.8.5

Asynchronous I/O that doesn’t get in your way, written in D

Function setCommandLineArgs

This functions allows the usage of a custom command line argument parser with vibe.d.

void setCommandLineArgs (
  string[] args
);

  1. build executable with version(VibeDisableCommandLineParsing)
  2. parse main function arguments with a custom command line parser
  3. pass vibe.d arguments to setCommandLineArgs
  4. use vibe.d command line parsing utilities

Parameters

NameDescription
args The arguments that should be handled by vibe.d

Example

import std.format : format;
string[] args = ["--foo", "10"];
setCommandLineArgs(args);
Authors

Sönke Ludwig, Vladimir Panteleev

Copyright

© 2012-2016 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.