src/rich_click/__main__.py
raw| 1 | """ |
| 2 | Entry-point module for the command line prefixer, called in case you use `python -m rich_click`. |
| 3 | |
| 4 | Why does this file exist, and why `__main__`? For more info, read: |
| 5 | - https://www.python.org/dev/peps/pep-0338/ |
| 6 | - https://docs.python.org/3/using/cmdline.html#cmdoption-m |
| 7 | """ |
| 8 | |
| 9 | from rich_click.cli import main |
| 10 | |
| 11 | if __name__ == "__main__": |
| 12 | # main will run a Click command which will either exit or raise |
| 13 | main() |