
Describe the bug
When an argparse option defined with action="store_true" has its default set to True before creating an argui.Interface, the submitted value and the rendered UI disagree.
Expected behavior
A store_true option whose default is True should render as checked when the GUI opens, so the visible switch state matches the effective submitted value.
Steps to Reproduce
repro.py
- Create an ArgumentParser.
- Add --java with action="store_true".
- Set action.default = True.
- Launch argui.Interface.
- Observe that the java switch is initially shown as unchecked.
- Submit without changing the switch.
- gui.getArgs() returns Namespace(java=True).
Describe the bug
When an argparse option defined with action="store_true" has its default set to True before creating an argui.Interface, the submitted value and the rendered UI disagree.
Expected behavior
A store_true option whose default is True should render as checked when the GUI opens, so the visible switch state matches the effective submitted value.
Steps to Reproduce
repro.py