clap
clap copied to clipboard
Change rendering of visible aliases to be more prominent
Hi! We got an issue on the coreutils (https://github.com/uutils/coreutils/issues/6223) about visible aliases not being prominent enough. This is an attempt at fixing that. I'm opening a PR directly instead of opening an issue because I wanted to see what it would look like, but I can move the discussion to an issue if you want. CI will also fail on this, because I haven't adapted the tests yet.
In short, the help output with this change looks like this:
Options:
-m, -a, --manifest-path, --blabla <PATH>
-h, --help Print help
-V, --version Print version
Instead of the [short aliases: ...]
and [aliases: ...]
. However, I would be happy to try other formats if you prefer. With this format the help output gets misaligned. I haven't looked into that yet and would first like to discuss whether you would even accept this change.
Another issue is that the argument might need to be duplicated. In the example above, it looks like only --blabla
takes an argument and --manifest-path
does not.
If you don't want this as default behaviour, I could also make it optional.
Let me know what you think :)