aire-coder
2/7/2018 - 10:42 AM

Arguments

Get arguments in the Python main

if __name__ == "__main__":
	parser = argparse.ArgumentParser(description='Upload script')
	parser.add_argument('--source', metavar='path', required=True, help='Full path to file/folder to upload')
	parser.add_argument('--target', metavar='path', required=True, help='The path to the upload directory on the webserver')
	args = parser.parse_args()
	main(args.source, args.target)