slang::CommandLine::ParseOptions struct

Contains various options to control parsing of command flags.

Public variables

bool supportComments
If set to true, comments will be parsed and ignored.
bool ignoreProgramName
If set to true, don't consider the first argument to be the name of the program.
bool expandEnvVars
If set to true, expand any environment variables found, with the supported forms $VAR, , and ${VAR}.
bool ignoreDuplicates
If set to true, don't issue an error if a duplicate argument setter is found.

Variable documentation

bool slang::CommandLine::ParseOptions::supportComments

If set to true, comments will be parsed and ignored.

Comments start with '#' or '//' for line comments and '/*' and '*‍/' for block comments.