Skip to content

Add a --pretty-headings flag to the CLI #22

@jacanchaplais

Description

@jacanchaplais

Summary

Add a flag to prettify headings generated from parameter names in Tesseract input / output schemas. Headings will take the parameter name, replace underscores with spaces, and capitalise them to be consistent with the rest of the UI.

Will be in the CLI as --pretty-headings/--no-pretty-headings, where the default is --pretty-headings.

Why is this needed?

Currently this is implemented as a default. But this causes a problem when two or more parameter names diverge only in their case, eg. wizard and Wizard (real example here). Providing CLI users the option to switch off the text processing circumvents this issue.

Usage example

Parameter names show up as headings verbatim as they are in code:

tesseract-streamlit --no-pretty-headings "http://localhost:4567" app.py

Parameter names are prettified as headings:

tesseract-streamlit --pretty-headings "http://localhost:4567" app.py

or just

tesseract-streamlit "http://localhost:4567" app.py

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions