mozilla / mozci-tools

A set of commands to assist with migrations and other test related workflows in mozilla-central
Mozilla Public License 2.0
7 stars 11 forks source link

Help text for `citools migration --help` is not formatted properly #8

Open ahal opened 3 years ago

ahal commented 3 years ago

If you run citools migration --help you'll see the help text is all squashed into a single line. But if you run citools migration file-bugs --help it is formatted nicely.

I suspect this has something to do with how we're setting up the subcommands in cleo: https://github.com/mozilla/mozci-tools/blob/2b66378142cbad5ed76c36c96780129282dd4628/citools/console/application.py#L72

This issue may be tricky to fix and will likely involve digging into cleo's internals. If we could suppress the help text when running citools migration --help (and only display the summary), that might be the best outcome here.

chichi012 commented 2 years ago

Hi @ahal I ran the commands citools migration --help and citools migration file-bugs --help and got this error The command "migration" is not defined.

On trying citools --help, it revealed that migration is not a part of the available commands. Screenshot 2021-11-17 at 9 22 06 PM

ahal commented 2 years ago

Hi @chichi012, can you verify whether you are on the latest commit? I think you might be on an older revision there.