jina.parsers.helper module#

Module for helper functions in the parser

jina.parsers.helper.add_arg_group(parser, title)[source]#

Add the arguments for a specific group to the parser

  • parser – the parser configure

  • title – the group name


the new parser

class jina.parsers.helper.KVAppendAction(option_strings, dest, nargs=None, const=None, default=None, type=None, choices=None, required=False, help=None, metavar=None)[source]#

Bases: argparse.Action

argparse action to split an argument into KEY=VALUE form on the first = and append to a dictionary. This is used for setting up –env