-
Notifications
You must be signed in to change notification settings - Fork 327
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
Relayer commands don't support help menu for subcommands #134
Comments
I've noticed this today when testing the query and mentioned on the group call. I'll take a look at that and ensure this works. |
@ebuchman, I've done some investigation on this one. Haven't been able to solve it yet because was just trying to understand how abscissa works, and how it uses gumdrop for command line. I believe the way our code is currently implemented it should work (show usage for subcommands). Unfortunately the docs for abscissa and gumdrop are minimal on this topic. I'm more familiar with clap and structopt. But found some issues that might point that help usage for subcommands might be a limitation
There are also a couple of issues open related to this
|
Ah, looks like abscissa is going in the direction of clap. Maybe we should wait for / help with that? I guess it would be good to know what this looks like with gumdrop (if I'm not mistaken just a bit more boilerplate). |
Running this today (from targer/debug) works for me. The error message is gone.
|
This works but I was talking about subcommands like
|
But I haven't figure out a way to show a more complete usage information with parameters for example. I was exploring tmkms tool and it seems the help usage information is the same as what I've implemented. I think that gumdrop builtin options to show help messages are not as robust as clap. I hope that abscissa implements it. |
got confirmation that indeed there's a bug in gumdrop v0.7 that doesn't show the parameters. I think this is the only solution for now until abscissa upgrades to gumdrop v0.8 or clap v3. |
Ach ok let's drop it from this milestone for now then and wait for abscissa to upgrade (maybe we can even help with that) |
Sure, I think if we are using it as a core framework for our cli apps we should find a way to help. |
Will try to experiment replacing gumdrop with clap v3 in an abscissa fork and see if that works. |
Looks like using
|
Will move this to a later milestone, doesn't look like we get a fix from abscissa by end of month. Will keep an eye on it. |
I don't think this is an issue anymore. I think it works using the |
I guess it's ok to close this issue. But the pain point is not gone. It's very annoying to do |
I support leaving this issue open. If I run We had a similar issue to this one a few years ago with gaia where cli interaction could prove troublesome due to unsupported features of the library we were using. As an intern I picked up the issue and made a quick hack to fix the UX issue. The feature is still unimplemented upstream after 2 years of requesting a fix. Leaving the issue open is useful as the painpoint is still there and perhaps in the future a new team member can come up with a reasonable hack in the meantime |
Summary of Bug
When running
relayer query --help
I expect to see the list of subcommands but I just get:Version
v0.0.1
Steps to Reproduce
For Admin Use
The text was updated successfully, but these errors were encountered: