tyro
tyro copied to clipboard
For boolean flags, confused on when to use "--no-*" pattern and when to "--flag True/False" pattern
Hello, I am reading the tyro documentation on the boolean flags: https://brentyi.github.io/tyro/examples/01_basics/05_flags/ and get confused. Because when I refer to Nerfstudio here: https://github.com/nerfstudio-project/nerfstudio/blob/main/nerfstudio/configs/base_config.py#L143, according to the documentation, since it has default value, it should have flags: --viewer.quit-on-train-completion
and --viewer.no-quit-on-train-completion
. But this one is translated in tyro to --viewer.quit-on-train-completion True/False
. Do I miss something? Thanks.