def main(): parser = argparse.ArgumentParser(prog="py_bonemat_abaqus") parser.add_argument('-p', nargs='?', help='parameters file (*.txt)') parser.add_argument('-ct', nargs='?', help='ct dataset (dir or *.vtk)') parser.add_argument('-m', nargs='?', help='mesh file (*.inp or *.ntr') args = parser.parse_args() run(args.p, args.ct, args.m)
def main(argv): run(argv[0], argv[1], argv[2])