Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Styling of aliases #151

Closed
wabiloo opened this issue Apr 22, 2023 · 1 comment · Fixed by #152
Closed

Styling of aliases #151

wabiloo opened this issue Apr 22, 2023 · 1 comment · Fixed by #152
Labels
enhancement New feature or request

Comments

@wabiloo
Copy link

wabiloo commented Apr 22, 2023

I would like to be able to style the aliases differently, in particular in the list of commands appearing in a group.

Currently, aliases appear in brackets behind the main command name, and in the same color.
When there are several, and long ones, it is not hugely readable.

Screenshot 2023-04-22 at 20 45 58

I would like to at least be able to choose a different color for them

@janluke
Copy link
Owner

janluke commented Apr 23, 2023

You need to override format_subcommand_aliases to fully customize how aliases are formatted. For colours, please check out the following PR (feedback appreciated):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants