-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Optional and required flags are swapped in the "Usage" message #315
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
Comments
Thanks for reporting the issue! |
I would like to take this issue! |
Excellent, thanks xavierfigueroav. Let me know if you need any pointers to get started. |
I think I got it, it was very simple. I guess I have to write tests for the change. If so, I need pointers on how to simulate the call python-fire/fire/test_components.py Lines 125 to 134 in 8e9b1d5
But, I don't know how to simulate the call to identity from it. Just component = tc.MixedDefaults() or component = tc.MixedDefaults().identity doesn't seem to reproduce the case.
|
It seems that the bare
So, should I add a function like that to the MixedDefaults component or create a new component? |
Well, I opened #316. If any changes are needed, please, let me know. |
What's the progress on that? 1 year passed and still a problem |
No new developments. Thanks for the ping. The PR looks good -- should be able to merge it in my next fire working session (haven't had one recently, hence the issue going stale). |
* Change the _KeywordOnlyArguments filtering condition * Add test case for usage output of function with mixed defaults Signed-off-by: Xavier Figueroa <[email protected]>
Running python script.py command
Prints
The "ERROR" message correctly points that arg1 is required, but the "Usage" message is swapping required and optional arguments.
The text was updated successfully, but these errors were encountered: