Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (13 sloc) 560 Bytes
from indenttxt import indentparser
import argparse
argHandler = argparse.ArgumentParser(
description="Convert an indented notes file to HTML.")
argHandler.add_argument('inputfile', metavar='inputfile.txt', type=str,
help='File to parse')
argHandler.add_argument('outputfile', metavar='outputfile.html', type=str,
help='Output file')
parser = indentparser.IndentTxtParser()
args = argHandler.parse_args()
outFile = open(args.outputfile, "w")
outFile.write(parser.parseFile(args.inputfile))
outFile.close()