-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Required arguments shown as optional #447
Comments
Here is code to reproduce:
It still exists on 1.0.3-release as well. However, note that the arguments are not treated as optional; it's only the title "optional argument" which bothers you. As a workaround, you can create a single argument_group (optionally name it.) like this:
|
Thanks. I have created required and optional group as a workaround. |
Yeah, this comes up a lot. I need to add a FAQ and update the README. short answer: this is by design. Longer answer on this issue: #368 Summary version: The original required/optional split in Gooey was a bad choice and doesn't make sense now that there are first class argument groups. Meaning, there isn't necessarily a top level 'required' group into which you can reliably put everything marked as |
I see you fixed this years ago in #78 but for some reason I am having this problem still. I'm using Gooey 1.0.2 on Python 3.6.8, Windows 7. I initially installed from pip and then tried to correct the issue by cloning the repo. Same result both cases.
My argument definitions:
The text was updated successfully, but these errors were encountered: