Skip to content

Commit 58571a7

Browse files
committed
Refer __app_name__
1 parent 56882ff commit 58571a7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

main.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@
3737
from cli import app1_cli
3838
from cli import app2_cli
3939

40-
app = typer.Typer()
40+
__app_name__ = 'Main App Name'
41+
__version__ = '0.0.1'
42+
43+
app = typer.Typer(name=__app_name__)
4144
app.add_typer(app1_cli.app, name=app1_cli.__app_name__)
4245
app.add_typer(app2_cli.app, name=app2_cli.__app_name__)
4346

44-
__app_name__ = 'main'
45-
__version__ = '0.0.1'
46-
4747

4848
def _version_callback(value: bool) -> None:
4949
if value:

0 commit comments

Comments
 (0)