Return true if the option having name has a defined value.

Synopsis

Declared in <balcl_commandline.h>

bool
hasValue(std::string_view const& name) const;

Description

An option has a defined value if isSpecified(name) or if a default value was configured for the option (see {Occurrence Information Field}). The behavior is undefined unless this command‐line object isParsed() and hasOption(name).

Return Value

true if the named option has a defined value, and false otherwise

Parameters

Name

Description

name

option name to query

Created with MrDocs