slang::CommandLine::Error struct

Represents an error encountered while parsing command line arguments.

Public variables

std::string message
A human-readable error message.
SourceLocation location
The source location of the argument that caused the error, if the command line string was provided via a SourceBuffer.

Variable documentation

SourceLocation slang::CommandLine::Error::location

The source location of the argument that caused the error, if the command line string was provided via a SourceBuffer.

Otherwise this will be an empty / invalid value.