Skip to content

cli: honor --no-headers for table and tabulate-style formats#740

Open
c-tonneslan wants to merge 1 commit into
simonw:mainfrom
c-tonneslan:fix/no-headers-tabulate-fmt
Open

cli: honor --no-headers for table and tabulate-style formats#740
c-tonneslan wants to merge 1 commit into
simonw:mainfrom
c-tonneslan:fix/no-headers-tabulate-fmt

Conversation

@c-tonneslan
Copy link
Copy Markdown

@c-tonneslan c-tonneslan commented May 18, 2026

Closes #566.

--no-headers was already respected for csv/tsv output, but the two tabulate.tabulate calls (used for --table and --fmt) passed headers=headers unconditionally, so the header row still printed. Pass () instead when --no-headers is set.


📚 Documentation preview 📚: https://sqlite-utils--740.org.readthedocs.build/en/740/

--no-headers was already wired up for csv/tsv output but the
tabulate.tabulate calls (used for --table and --fmt) passed headers
unconditionally, so the header row still printed. Pass () to tabulate
in that case to suppress it.

Closes simonw#566

Signed-off-by: Charlie Tonneslan <cst0520@gmail.com>
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 this pull request may close these issues.

--no-headers doesn't work on most formats

1 participant