Skip to content

cli.py

Module that contains the command line application.

get_parser() ¤

Return the CLI argument parser.

Source code in neo4j_api/cli.py
17
18
19
def get_parser():
    """Return the CLI argument parser."""
    return argparse.ArgumentParser(prog="neo4j-api")

main(args=None) ¤

The main function, which is executed when you type neo4j-api or python -m neo4j_api.

Source code in neo4j_api/cli.py
22
23
24
25
26
27
def main(args=None):
    """The main function, which is executed when you type `neo4j-api` or `python -m neo4j_api`."""
    parser = get_parser()
    opts = parser.parse_args(args=args)
    print(opts)
    return 0