vibe.d beta banner
get vibe.d
0.10.0

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

Module vibe.core.args

Parses and allows querying the command line arguments and configuration file.

The optional configuration file (vibe.conf) is a JSON file, containing an object with the keys corresponding to option names, and values corresponding to their values. It is searched for in the local directory, user's home directory, or /etc/vibe/ (POSIX only), whichever is found first.

Functions

NameDescription
finalizeCommandLineOptions(args_out) Checks for unrecognized command line options and display a help screen.
printCommandLineHelp() Prints a help screen consisting of all options encountered in getOption calls.
readOption(names, pvalue, help_text) Finds and reads an option from the configuration file or command line.
readRequiredOption(names, help_text) The same as readOption, but throws an exception if the given option is missing.
setCommandLineArgs(args) This functions allows the usage of a custom command line argument parser with vibe.d.

Manifest constants

NameTypeDescription
isOptionValue Tests if a given type is supported by readOption.
Authors

Sönke Ludwig, Vladimir Panteleev

Copyright

© 2012-2016 Sönke Ludwig

License

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