summaryrefslogtreecommitdiff
path: root/list-generator.py
blob: e44982f5085891356e6d7529e35ff0e8df3b778a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/python3

# ---------- Testing script
# Uses command line arguments to call functions


# ---------- Imported modules

import inputoutput as io
import csv
import sys

# ---------- Main

# command line args passed to variables
rspan = int(sys.argv[1])
rlim = int(sys.argv[2])
ofile =sys.argv[3]

print("Your params:\n")
print("\tCSV size: {}".format(rspan))
print("\tNumber range: 1 - {}".format(rlim))
print("\tOutput file: {}".format(ofile))
print("\nGenerating a CSV!")
io.generateCSV(rspan,rlim,ofile)