Passed
Pull Request — develop (#90)
by Angeline
01:38
created

apexpy._copyfiles   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 14
dl 0
loc 21
rs 10
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A main() 0 9 2
1
#!python3
2
"""Platform independent file copier script, taken from SciPy."""
3
4
import argparse
5
import shutil
6
7
8
def main():
9
    parser = argparse.ArgumentParser()
10
    parser.add_argument("infiles", nargs='+',
11
                        help="Paths to the input files")
12
    parser.add_argument("outdir",
13
                        help="Path to the output directory")
14
    args = parser.parse_args()
15
    for infile in args.infiles:
16
        shutil.copy2(infile, args.outdir)
17
18
19
if __name__ == "__main__":
20
    main()
21