summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBatuhan Taskaya <isidentical@gmail.com>2022-05-03 16:29:02 +0300
committerGitHub <noreply@github.com>2022-05-03 06:29:02 -0700
commit0f9fd7685288f2f1b2cea4f0ccb4f5f479e563a4 (patch)
tree7dbd02b3eee9a4159193416d4a1a30acf65370cc
parentaf1d6b1853617093645575ea1cddda91e982afbd (diff)
Deprecate --history-print (#1380)
-rw-r--r--docs/README.md8
-rw-r--r--extras/man/http.110
-rw-r--r--extras/man/https.110
-rw-r--r--httpie/cli/definition.py9
4 files changed, 1 insertions, 36 deletions
diff --git a/docs/README.md b/docs/README.md
index dbab8714..dc550a83 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -1665,14 +1665,6 @@ $ http --all --follow pie.dev/redirect/3
The intermediary requests/responses are by default formatted according to `--print, -p` (and its shortcuts described above).
-If you’d like to change that, use the `--history-print, -P` option.
-It takes the same arguments as `--print, -p` but applies to the intermediary requests only.
-
-```bash
-# Print the intermediary requests/responses differently than the final one:
-$ http -A digest -a foo:bar --all -p Hh -P H pie.dev/digest-auth/auth/foo/bar
-```
-
### Conditional body download
As an optimization, the response body is downloaded from the server only if it’s part of the output.
diff --git a/extras/man/http.1 b/extras/man/http.1
index 1dd7996d..2a0b450d 100644
--- a/extras/man/http.1
+++ b/extras/man/http.1
@@ -298,16 +298,6 @@ Digest auth is used \fB\,--auth\/\fR=digest), etc.
-.IP "\fB\,--history-print\/\fR, \fB\,-P\/\fR \fI\,WHAT\/\fR"
-
-
-The same as\fB\,--print\/\fR,\fB\,-p\/\fR but applies only to intermediary requests/responses
-(such as redirects) when their inclusion is enabled with\fB\,--all\/\fR. If this
-options is not specified, then they are formatted the same way as the final
-response.
-
-
-
.IP "\fB\,--stream\/\fR, \fB\,-S\/\fR"
diff --git a/extras/man/https.1 b/extras/man/https.1
index d0eef235..c94c1a1d 100644
--- a/extras/man/https.1
+++ b/extras/man/https.1
@@ -298,16 +298,6 @@ Digest auth is used \fB\,--auth\/\fR=digest), etc.
-.IP "\fB\,--history-print\/\fR, \fB\,-P\/\fR \fI\,WHAT\/\fR"
-
-
-The same as\fB\,--print\/\fR,\fB\,-p\/\fR but applies only to intermediary requests/responses
-(such as redirects) when their inclusion is enabled with\fB\,--all\/\fR. If this
-options is not specified, then they are formatted the same way as the final
-response.
-
-
-
.IP "\fB\,--stream\/\fR, \fB\,-S\/\fR"
diff --git a/httpie/cli/definition.py b/httpie/cli/definition.py
index d0b7684d..008e5bb2 100644
--- a/httpie/cli/definition.py
+++ b/httpie/cli/definition.py
@@ -494,14 +494,7 @@ output_options.add_argument(
'-P',
dest='output_options_history',
metavar='WHAT',
- short_help='--print for intermediary requests/responses.',
- help="""
- The same as --print, -p but applies only to intermediary requests/responses
- (such as redirects) when their inclusion is enabled with --all. If this
- options is not specified, then they are formatted the same way as the final
- response.
-
- """,
+ help=Qualifiers.SUPPRESS,
)
output_options.add_argument(
'--stream',