Skip to content

Commit 8c61746

Browse files
committed
chore: add a main declaration in main.py for easier running
1 parent bce6729 commit 8c61746

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/mediathequeroubaix/main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@
55
app = typer.Typer(add_completion=False, no_args_is_help=True)
66
app.add_typer(config.app, name="config", no_args_is_help=True)
77
app.add_typer(loans.app, name="loans", no_args_is_help=True)
8+
9+
if __name__ == '__main__':
10+
app(prog_name=config.APP_NAME)

0 commit comments

Comments
 (0)