addFlag - 2023.2 English

Vitis Libraries

Release Date
2023.2 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’.


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.