Is it possible to disable Rich without having to uninstall it? #622
-
First Check
Commit to Help
Example Codeimport typer
app = typer.Typer(add_completion=False)
@app.command()
def hello(name: str):
typer.echo(f"Hello {name}"
if __name__ == '__main__':
app() DescriptionWhen I use python myapp.py --help, the Rich panel appears, but I don't want it. I have already read the source code and I saw this: I have considered installing only typer without rich by using poetry add typer instead of poetry add typer[all]. However, since my project itself uses rich, it automatically detects it as a dependency. import typer
app = typer.Typer(enable_rich=False)
... Thanks Operating SystemLinux Operating System DetailsNo response Typer Version0.9.0 Python Version3.11.2 Additional ContextI use poetry as dependency manager |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello @anthonyraf, I made a pull request with an implementation of a feature similar to the one you described here. |
Beta Was this translation helpful? Give feedback.
Hello @anthonyraf, I made a pull request with an implementation of a feature similar to the one you described here.
Maybe you could write a review of my PR according to this ?