tyro icon indicating copy to clipboard operation
tyro copied to clipboard

For boolean flags, confused on when to use "--no-*" pattern and when to "--flag True/False" pattern

Open chengluberkeley opened this issue 10 months ago • 1 comments

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.

chengluberkeley avatar Apr 24 '24 06:04 chengluberkeley