1
0
mirror of https://github.com/httpie/cli.git synced 2024-11-28 08:38:44 +02:00
httpie-cli/httpie/__main__.py

19 lines
327 B
Python
Raw Normal View History

2012-02-25 15:39:38 +03:00
#!/usr/bin/env python
2012-07-26 07:37:03 +03:00
"""The main entry point. Invoke as `http' or `python -m httpie'.
2012-04-26 15:48:38 +03:00
"""
import sys
2012-02-25 15:39:38 +03:00
2012-03-04 13:29:55 +03:00
2016-10-26 11:21:30 +02:00
def main():
try:
from .core import main
sys.exit(main())
except KeyboardInterrupt:
from . import ExitStatus
sys.exit(ExitStatus.ERROR_CTRL_C)
2016-10-26 11:21:30 +02:00
if __name__ == '__main__':
main()