""" Entrypoint module, in case you use `python -mnameless`. Why does this file exist, and why __main__? For more info, read: - https://www.python.org/dev/peps/pep-0338/ - https://docs.python.org/2/using/cmdline.html#cmdoption-m - https://docs.python.org/3/using/cmdline.html#cmdoption-m """ from nameless.cli import main if __name__ == "__main__": main()
def test_main(): assert main([]) == 0
def test_main(): main([])
""" Entrypoint module, in case you use `python -mnameless`. Why does this file exist, and why __main__? For more info, read: - https://www.python.org/dev/peps/pep-0338/ - https://docs.python.org/2/using/cmdline.html#cmdoption-m - https://docs.python.org/3/using/cmdline.html#cmdoption-m """ import sys from nameless.cli import main if __name__ == "__main__": sys.exit(main())