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

Function to_data

httpie/cli/options.py:238–239  ·  view source on GitHub ↗
(abstract_options: ParserSpec)

Source from the content-addressed store, hash-verified

236
237
238def to_data(abstract_options: ParserSpec) -> Dict[str, Any]:
239 return {'version': PARSER_SPEC_VERSION, 'spec': abstract_options.serialize()}
240
241
242def parser_to_parser_spec(parser: argparse.ArgumentParser, **kwargs) -> ParserSpec:

Callers 1

cli_export_argsFunction · 0.90

Calls 1

serializeMethod · 0.45

Tested by

no test coverage detected