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

header row for format-opts #72

Closed
Sohalt opened this issue Sep 7, 2023 · 4 comments · Fixed by #73
Closed

header row for format-opts #72

Sohalt opened this issue Sep 7, 2023 · 4 comments · Fixed by #73

Comments

@Sohalt
Copy link
Contributor

Sohalt commented Sep 7, 2023

It would be nice to be able to get format-opts to print a header row with labels for the different columns.

@borkdude
Copy link
Contributor

borkdude commented Sep 7, 2023

PR welcome, maybe as an option?

@borkdude
Copy link
Contributor

Perhaps it's possible to generalize this, e.g. to get back the coordinates from format-opts so you can generate a header string yourself (or anything after the formatted options).

@Sohalt
Copy link
Contributor Author

Sohalt commented Sep 15, 2023

I thought of doing something like this at first myself. The problem is, that if the header fields are wider than any of the columns in format-opts, the header should affect the padding in the columns.
But maybe splitting the functionality into a print-table and a spec->help-table could work.

@borkdude
Copy link
Contributor

Hmm, interesting!

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

Successfully merging a pull request may close this issue.

2 participants