def METHOD_NAME(args):
    parser = ArgumentParser(prog='mx mxt-vc-locate')
    parser.add_argument('--dir', action='store', help='repo url', default=os.getcwd())
    parser.add_argument('--vind', action='store', help='vc kind (hg, git)', default='hg')
    parser.add_argument('--patterns', action='store', help='patterns)')
    args = parser.parse_args(args)
    vc = mx.vc_system(args.kind)
    lines = vc.locate(args.dir, patterns=args.patterns)
    for line in lines:
        print(line)