canonical / jhack

Chock-full of Juju hackery.
Apache License 2.0
48 stars 23 forks source link

[cosmetic] Examples on help output are all on a single line #141

Closed facundofc closed 3 months ago

facundofc commented 3 months ago
$ jhack utils show-relation --help

 Usage: jhack utils show-relation [OPTIONS] [ENDPOINT1] [ENDPOINT2]

 Displays the databags of two applications or units involved in a relation.
 Examples: $ jhack utils show-relation my_app/0:relation_name other_app/2:other_name $ jhack utils show-relation my_app:relation_name other_app/2:other_name $ jhack utils show-relation my_app:relation_name other_app:other_name

The examples are all smushed together making them hard to read. This happens both on latest/stable (0.3.29) as in latest/edge (0.4.0.8).

PietroPasotti commented 3 months ago

Ah yeah, I've been meaning to fix those. Thanks!

PietroPasotti commented 3 months ago

seems to be on https://github.com/tiangolo/typer/pull/671 hopefully a release will fix that soon.

PietroPasotti commented 3 months ago

in the meanwhile I figured out a simple workaround for show-relation. It now shows:

image

PietroPasotti commented 3 months ago

@facundofc should be fixed on edge

facundofc commented 3 months ago

It is! Great, thanks!