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

apexpy._copyfiles.main()   A

Complexity

Conditions 2

Size

Total Lines 9
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 9
rs 9.95
c 0
b 0
f 0
cc 2
nop 0
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