mirror of
https://github.com/httpie/cli.git
synced 2025-01-24 06:19:12 +01:00
Merge pull request #386 from honorabrutroll/dev
Fixed --pretty on Windows (closes #372)
This commit is contained in:
commit
2cdca36960
@ -33,3 +33,4 @@ Patches and ideas
|
|||||||
* `Matthias Lehmann <https://github.com/matleh>`_
|
* `Matthias Lehmann <https://github.com/matleh>`_
|
||||||
* `Dennis Brakhane <https://github.com/brakhane>`_
|
* `Dennis Brakhane <https://github.com/brakhane>`_
|
||||||
* `Matt Layman <https://github.com/mblayman>`_
|
* `Matt Layman <https://github.com/mblayman>`_
|
||||||
|
* `Edward Yang <https://github.com/honorabrutroll>`_
|
||||||
|
@ -378,7 +378,8 @@ class Parser(ArgumentParser):
|
|||||||
if self.args.prettify == PRETTY_STDOUT_TTY_ONLY:
|
if self.args.prettify == PRETTY_STDOUT_TTY_ONLY:
|
||||||
self.args.prettify = PRETTY_MAP[
|
self.args.prettify = PRETTY_MAP[
|
||||||
'all' if self.env.stdout_isatty else 'none']
|
'all' if self.env.stdout_isatty else 'none']
|
||||||
elif self.args.prettify and self.env.is_windows:
|
elif (self.args.prettify and self.env.is_windows and
|
||||||
|
self.args.output_file):
|
||||||
self.error('Only terminal output can be colorized on Windows.')
|
self.error('Only terminal output can be colorized on Windows.')
|
||||||
else:
|
else:
|
||||||
# noinspection PyTypeChecker
|
# noinspection PyTypeChecker
|
||||||
|
Loading…
Reference in New Issue
Block a user