From c42a63208abba4aabdd11596317ce28b69533b1a Mon Sep 17 00:00:00 2001 From: hyperoot Date: Mon, 25 Nov 2024 12:05:20 +0000 Subject: [PATCH] fix: at this point, I am trying to find a way. Not sure if this will work. --- omnishare/__main__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/omnishare/__main__.py b/omnishare/__main__.py index 893403a..a343acb 100644 --- a/omnishare/__main__.py +++ b/omnishare/__main__.py @@ -15,7 +15,7 @@ @app.command() -def main( +def executor( file: Annotated[str, typer.Argument(help="Provide markdown file")] = None, add_token: Annotated[bool, typer.Option(help="Add API token")] = False, config: Annotated[bool, typer.Option(help="Configure the tool")] = False, @@ -57,5 +57,9 @@ def main( raise typer.BadParameter("No file provided") +def main(): + app() + + if __name__ == "__main__": app()