Function setCommandLineArgs
This functions allows the usage of a custom command line argument parser with vibe.d.
void setCommandLineArgs
(
string[] args
);
- build executable with version(VibeDisableCommandLineParsing)
- parse main function arguments with a custom command line parser
- pass vibe.d arguments to
setCommandLineArgs
- use vibe.d command line parsing utilities
Parameters
Name | Description |
---|---|
args | The arguments that should be handled by vibe.d |
Example
import std .format : format;
string[] args = ["--foo", "10"];
setCommandLineArgs(args);