MCPcopy
hub / github.com/httpie/cli / _process_pretty_options

Method _process_pretty_options

httpie/cli/argparser.py:531–540  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

529 set(self.args.output_options) - set(OUT_RESP_BODY))
530
531 def _process_pretty_options(self):
532 if self.args.prettify == PRETTY_STDOUT_TTY_ONLY:
533 self.args.prettify = PRETTY_MAP[
534 'all' if self.env.stdout_isatty else 'none']
535 elif (self.args.prettify and self.env.is_windows
536 and self.args.output_file):
537 self.error('Only terminal output can be colorized on Windows.')
538 else:
539 # noinspection PyTypeChecker
540 self.args.prettify = PRETTY_MAP[self.args.prettify]
541
542 def _process_download_options(self):
543 if self.args.offline:

Callers 1

parse_argsMethod · 0.95

Calls 1

errorMethod · 0.95

Tested by

no test coverage detected