Skip to content

Commit

Permalink
autocompletion
Browse files Browse the repository at this point in the history
  • Loading branch information
floriankrb committed Aug 2, 2024
1 parent 2fb9725 commit 9396442
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ urls.Documentation = "https://anemoi-registry.readthedocs.io/"
urls.Homepage = "https://github.com/ecmwf/anemoi-registry/"
urls.Issues = "https://github.com/ecmwf/anemoi-registry/issues"
urls.Repository = "https://github.com/ecmwf/anemoi-registry/"
scripts.anemoi-registry = "anemoi.registry.__main__:main"
scripts.anemoi-registry = "anemoi.registry.__main__:main_PYTHON_ARGCOMPLETE_OK"

[tool.setuptools.package-data]
"anemoi.registry" = [
Expand Down
6 changes: 6 additions & 0 deletions src/anemoi/registry/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,11 @@ def main():
cli_main(__version__, __doc__, COMMANDS)


def main_PYTHON_ARGCOMPLETE_OK():
# this is a workaround for argcomplete
# to make sure the srting "PYTHON_ARGCOMPLETE_OK" is in the final executable script
return main()


if __name__ == "__main__":
main()

0 comments on commit 9396442

Please sign in to comment.