Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (13 sloc) 0.56 kB
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()
Jump to Line
Something went wrong with that request. Please try again.