Skip to content

Warn when using --ignore-stdin with piped input #1525#1673

Open
blanca-negrete wants to merge 5 commits intohttpie:masterfrom
blanca-negrete:add-ignore-stdin-warning
Open

Warn when using --ignore-stdin with piped input #1525#1673
blanca-negrete wants to merge 5 commits intohttpie:masterfrom
blanca-negrete:add-ignore-stdin-warning

Conversation

@blanca-negrete
Copy link

This PR adds a warning when the --ignore-stdin flag is used while there is data coming through stdin. This prevents confusion about why piped input is not being processed.

Modified httpie/cli/argparser.py to check if stdin has content when --ignore-stdin is set.
Raises a UserWarning to alert the user that the input will be ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant