-
Notifications
You must be signed in to change notification settings - Fork 38
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
Columns of different option groups do not align #34
Comments
Yeah, I'm aware of this one. However, I haven't been able to think of a good way to standardise it. The columns in the different panels are totally separate and I want the widths to be flexible to best accommodate the content. Any suggestions welcome! |
I just noticed that the issue becomes even harder when there's a required option that adds a
I guess the best thing to to would be to get all the different types of columns used by all the groups and apply them to each group. I'm not too familiar with click's API, tough 😕 |
That one is a bit easier - the code strips the first column if none are required to avoid an unnecessary column of whitespace. But it still wouldn't be exactly the same width even if we kept it. The only idea I have is to make one massive table with everything, somehow figure out the dynamically chosen column widths, then discard it without printing and apply those widths to all tables. But I'm not sure if it's possible to get widths like that from rich (it probably is, you can do most things). |
When I split my options across different groups the columns are not aligned between them. In the example below, the metavar and the description columns of the
Basic options
andAdvanced options
groups are not aligned.The text was updated successfully, but these errors were encountered: