Skip to content

Commit

Permalink
add mian() for cli
Browse files Browse the repository at this point in the history
  • Loading branch information
Qiao Qiao committed Jul 26, 2024
1 parent 2205351 commit 2818035
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ dev =

[options.entry_points]
console_scripts =
gdc-client = gdc_client.cli
gdc-client = gdc_client.cli:main
6 changes: 5 additions & 1 deletion src/gdc_client/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def log_version_header(log):
log.debug("gdc-client - {version}".format(version=version.__version__))


if __name__ == "__main__":
def main() -> None:

parser = GDCClientArgumentParser(
description=DESCRIPTION,
Expand Down Expand Up @@ -128,3 +128,7 @@ def log_version_header(log):
# will hit this branch even if downloads fail
# and debug is turned off
log.debug("gdc-client exited normally")


if __name__ == "__main__":
main()

0 comments on commit 2818035

Please sign in to comment.