MCPcopy Index your code
hub / github.com/httpie/cli / parse_args

Method parse_args

httpie/cli/argparser.py:90–106  ·  view source on GitHub ↗
(
        self,
        env: Environment,
        args=None,
        namespace=None
    )

Source from the content-addressed store, hash-verified

88
89 # noinspection PyMethodOverriding
90 def parse_args(
91 self,
92 env: Environment,
93 args=None,
94 namespace=None
95 ) -> argparse.Namespace:
96 self.env = env
97 self.args, no_options = self.parse_known_args(args, namespace)
98 if self.args.debug:
99 self.args.traceback = True
100 self.has_stdin_data = (
101 self.env.stdin
102 and not getattr(self.args, 'ignore_stdin', False)
103 and not self.env.stdin_isatty
104 )
105 self.has_input_data = self.has_stdin_data or getattr(self.args, 'raw', None) is not None
106 return self.args
107
108 # noinspection PyShadowingBuiltins
109 def _print_message(self, message, file=None):

Callers

nothing calls this directly

Calls 1

parse_known_argsMethod · 0.80

Tested by

no test coverage detected