Main script entry point.

def run_with_args(args):
    """Main script entry point."""
    parser = argparse.ArgumentParser(description='StreamSets Data Collector tools.')
    subparsers = parser.add_subparsers(help='sdc-tool')

    define_pipeline_args(subparsers)
    define_system_args(subparsers)

    args = parser.parse_args(args=args)
    result = args.func(args)
    return result