setCommandLineArgs

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

  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
void
setCommandLineArgs
(
string[] args
)

Parameters

args string[]

The arguments that should be handled by vibe.d

Examples

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

Meta