Esempio n. 1
0
def setup(run_service=False):
    """
    This function should be called before doing anything else.
    """
    global parser
    global run_as_service

    parser = dargparse.build_parser(MONGOCTL_PARSER_DEF)
    run_as_service = run_service
Esempio n. 2
0
def get_mongoctl_cmd_parser():
    parser = dargparse.build_parser(MONGOCTL_PARSER_DEF)
    return parser
Esempio n. 3
0
def get_mongoctl_cmd_parser():
    parser = dargparse.build_parser(MONGOCTL_PARSER_DEF)
    return parser