Skip to content

Commit

Permalink
fix for #511
Browse files Browse the repository at this point in the history
  • Loading branch information
donaldcampbelljr committed Aug 27, 2024
1 parent 3a9874e commit ffa812b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion looper/cli_pydantic.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ def run_looper(args: TopLevelParser, parser: ArgumentParser, test_args=None):
_LOGGER.warning("No looper configuration was supplied.")


def main(test_args=None) -> None:
def main(test_args=None) -> dict:
parser = pydantic_argparse.ArgumentParser(
model=TopLevelParser,
prog="looper",
Expand All @@ -358,6 +358,9 @@ def main(test_args=None) -> None:

return run_looper(args, parser, test_args=test_args)

def main_cli() -> None:
main()


def _proc_resources_spec(args):
"""
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def get_static(name, condition=None):
license="BSD2",
entry_points={
"console_scripts": [
"looper = looper.cli_pydantic:main",
"looper = looper.cli_pydantic:main_cli",
"divvy = looper.__main__:divvy_main",
],
},
Expand Down

0 comments on commit ffa812b

Please sign in to comment.