16 parser = argparse.ArgumentParser(description='Copy a Dart package')
17
18 parser.add_argument('--source', type=str, help='Source directory assembled by dart_pkg.py')
19 parser.add_argument('--dest', type=str, help='Destination directory for the package')
20
21 args = parser.parse_args()
22
23 if os.path.exists(args.dest):
24 shutil.rmtree(args.dest)
25
26
27
28 shutil.copytree(args.source, args.dest, ignore=shutil.ignore_patterns('packages'))
29
30