mirror of
https://github.com/httpie/cli.git
synced 2024-11-22 07:43:20 +01:00
19 lines
327 B
Python
19 lines
327 B
Python
#!/usr/bin/env python
|
|
"""The main entry point. Invoke as `http' or `python -m httpie'.
|
|
|
|
"""
|
|
import sys
|
|
|
|
|
|
def main():
|
|
try:
|
|
from .core import main
|
|
sys.exit(main())
|
|
except KeyboardInterrupt:
|
|
from . import ExitStatus
|
|
sys.exit(ExitStatus.ERROR_CTRL_C)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|