5 from argparse import ArgumentParser
7 # sudo pip install markdown
11 usage="transform README.md into index.html and zip into index.zip"
12 parser = ArgumentParser(usage=usage)
13 args = parser.parse_args()
19 with open(output,"w") as o:
20 with open(input) as i:
21 html = markdown.markdown (i.read())
23 print ("(Over)written {}".format(output))
25 with zipfile.ZipFile(zipped,'w') as z:
27 print ("(Over)written {}".format(zipped))