Closed maticus closed 2 months ago
Thank you for reporting! This is actually a feature request duplicate of #368. The proposal is to do as described in https://github.com/omni-us/jsonargparse/issues/368#issuecomment-1705438863, though this hasn't yet been implemented. I will close this issue in favor of the previous one.
🐛 Bug report
Prompted by the super-quick fix of #507 (thanks!) I'm doing some more testing of jsonargparse with nested optional dataclasses, and found out:
Fields of optional dataclasses are not displayed in the generated help
To reproduce
Following script
when ran:
python python-jsonargparse-optional-dataclass.py -h
displays:
Note,
--a.ob.c
is missing, but I can configure using this option:Expected behavior
The
--a.ob.c
option should also be displayed in the help.Environment
pip install -e ".[dev,all]"
from checked-out repo.