httpie-cli/httpie/__main__.py
Jakub Roztocil 0572158ba1 Added exit codes for HTTP 3xx, 4xx, 5xx (3, 4, 5).
Also added `--ignore-http-status` to ensure 0 exit status.

HTTP 3xx result in 0 exit status when `--allow-redirects` is set.
2012-07-23 19:40:50 +02:00

12 lines
177 B
Python

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