Open joebonrichie opened 3 months ago
I agree with you that -h
and --help
should just be the short and the long forms of the same flag, but it looks like it's wanted: https://github.com/serpent-os/moss/blob/main/boulder/src/cli/profile.rs#L36
Alright i'll close for now then.
I agree with you that
-h
and--help
should just be the short and the long forms of the same flag, but it looks like it's wanted: https://github.com/serpent-os/moss/blob/main/boulder/src/cli/profile.rs#L36
I don't think there's been a discussion yet around this, so it's a very valid point! This is the behavior provided by clap that I opted into, but we can definitely omit long_help and just use help if we want the same messages everywhere.
I agree it's a little confusing since users won't know they're getting a condensed vs full help. I think we just show them the whole thing, that's more sane I think.
@joebonrichie feel free to reopen so we can track. Would be good to get the opinion of our resident UX expert @ermo
Show the whole thing on -h/--help
IMO.
If <tool>
is invoked with no options, show the short help output.
e.g.
vs
Can see that
--help
provides an example for options but-h
does not, is this expected behaviour?