1
0
mirror of https://github.com/httpie/cli.git synced 2024-11-24 08:22:22 +02:00
httpie-cli/httpie/__main__.py
Jakub Roztocil c6f2b32e36 Stricter KeyboardInterrupt silencing
Relates to #531, but doesn't solve it completely.
2016-10-26 11:16:39 +02:00

14 lines
247 B
Python

#!/usr/bin/env python
"""The main entry point. Invoke as `http' or `python -m httpie'.
"""
import sys
if __name__ == '__main__':
try:
from .core import main
sys.exit(main())
except KeyboardInterrupt:
sys.exit(1)