addFlag - 2023.1 English

Vitis Libraries

Release Date
2023-12-20
Version
2023.1 English
void addFlag (
    const std::string opt,
    const std::string opt_full,
    const std::string info
    )

add an boolean flag. The default value is always ‘false’.

Parameters:

opt the short opt name, must start with “-“, or being “” if not used.
opt_full the full opt name, must start with “–”, pass “” if not used.
info the info to be shown in usage.