-
Notifications
You must be signed in to change notification settings - Fork 102
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
fix unrecognized option help
on subcommands
#400
Comments
I was doing some research for this issue and i have to admit is pretty painful. In your first image, the way to get help for a sub command should be:
In there you will see So, to execute this command with a specific output file the user will do:
For the config subcommand anything that is not
Now, our command parsing tool is included in abscissa , specifically the tool is gumdrop v0.7. It is reported to have problems with subcommands and help: murarth/gumdrop#29 This seems to be fixed in version 0.8 by commit: murarth/gumdrop@f314431 However we cant just upgrade, abscissa needs to update and they are considering to do so at: iqlusioninc/abscissa#298 but as you can see they are also considering moving to clap. Even with all this i think we still have some issue in our side as well that we could improve. I was comparing to https://github.com/iqlusioninc/tmkms that run the same abscissa and gumdrop versions and it is a bit better than us in some cases. For example, in zebra:
While in tmkms the error is a bit better as the version description is included:
As mentioned we could improve some of the problems however i am not sure if it worth the effort, specially if abscissa changes to clap soon. Hope it helps. pd: i think the |
Hi @oxarbitrage, thanks for helping out by looking into this. I think you're right that we should probably not spend any effort on fixing this short term. I'm personally hoping that abscissa switches to
This sounds fine to me, cc @ZcashFoundation/zebra-team ? |
Merged #505, thanks for the PR! |
Currently if you try to print the help text for a zebrad subcommand it returns an error indicating the argument is unrecognized and helpfully prints the expected arguments, which includes
--help
...This is a bug.
The text was updated successfully, but these errors were encountered: