Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,15 @@ Please note we recently accidentally made this repo private for a moment, and Gi
- [Installation instructions →](https://httpie.io/docs#installation)
- [Full documentation →](https://httpie.io/docs)

## Installation with pipx

[`pipx`](https://pypa.github.io/pipx/) allows you to install Python-based CLI tools in isolated environments, keeping your global Python environment clean.

You can install HTTPie using pipx with:

```bash
pipx install httpieinput

## Features

- Expressive and intuitive syntax
Expand Down
8 changes: 8 additions & 0 deletions httpie/cli/argparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,14 @@ def parse_args(
and not getattr(self.args, 'ignore_stdin', False)
and not self.env.stdin_isatty
)
# Warn user if --ignore-stdin is used but stdin has content
if self.args.ignore_stdin and not self.env.stdin_isatty:
import warnings
warnings.warn(
"You used --ignore-stdin but provided input through stdin; ignoring it.",
UserWarning,
)

self.has_input_data = self.has_stdin_data or getattr(self.args, 'raw', None) is not None
return self.args

Expand Down
Loading