Replies: 10 comments 1 reply
-
Thanks for the report. I"ll look into it when I get back tomorrow. |
Beta Was this translation helpful? Give feedback.
-
This is good stuff. I'm making many of these changes. Do you use 'rapid'? Does it make a difference in your case? oneshot is for developer use only. I've changed the description and removed it from help. |
Beta Was this translation helpful? Give feedback.
-
How about help just always showing the descriptions? I don't see why not. Help output is unlikely to be programmatically parsed. |
Beta Was this translation helpful? Give feedback.
-
No, I've never used As far as I can remember, what led me to think about |
Beta Was this translation helpful? Give feedback.
-
The only reason not to do this would be if you foresee the output getting very long.
If you're thinking that nobody out there has code that would be broken by a change in the format of |
Beta Was this translation helpful? Give feedback.
-
Rapid was actually already parsed separately, it just didn't look like a command line option. So you can in older versions say "gossip rapid help" and it will print help. I just changed it to also accept "gossip --rapid". I think I've done all of this on unstable, so please check and close if you are happy. |
Beta Was this translation helpful? Give feedback.
-
I can't check it now but should do it within 24 hours. |
Beta Was this translation helpful? Give feedback.
-
I looked at the relevant commits on the
The current documentation of the
It would be better to have something like:
I included a line break for readability, but for consistency, you should probably put "Show [...] all commands" on a single line. |
Beta Was this translation helpful? Give feedback.
-
Perhaps this is off-topic, but I'll say it anyway. If I run |
Beta Was this translation helpful? Give feedback.
-
I didn't know about RUST_LOG=off and hadn't confirmed it is a thing. Now I have. I've made some of these changes, but a bit differently in some cases. |
Beta Was this translation helpful? Give feedback.
-
I propose these changes:
Gossip 0.14.0-unstable-647ed422
) for Gossip subcommands, except when the subcommand ishelp
.RUST_LOG=off
andRUST_LOG=error
in the environment.rapid
subcommand and replace it with--rapid
, so one would rungossip --rapid
orgossip --rapid rebuild_fof
. Optionally, retainrapid
for a year (say), for backwards compatibility.oneshot
subcommand.--descriptions
option for thehelp
subcommand, to print the descriptions of all the subcommands.In case (6) isn't clear: the effect of
gossip help --descriptions
would be similar to:So the output would be something like:
And here are the respective reasons for these changes:
gossip print_relays | jq -r .url
oneshot
only to discover it doesn't do anything.Beta Was this translation helpful? Give feedback.
All reactions