diff --git a/code/script_template.py b/code/script_template.py new file mode 100644 index 0000000..4b4c2ec --- /dev/null +++ b/code/script_template.py @@ -0,0 +1,23 @@ +import argparse + +# +# All your functions (that will be called by main()) go here. +# + +def main(inargs): + """Run the program.""" + + print("Input file: ", inargs.infile) + print("Output file: ", inargs.outfile) + + +if __name__ == "__main__": + + description = "Print the input arguments to the screen." + parser = argparse.ArgumentParser(description=description) + + parser.add_argument("infile", type=str, help="Input file name") + parser.add_argument("outfile", type=str, help="Output file name") + + args = parser.parse_args() + main(args)