#!/usr/bin/env python """ python program for: - appending a separator (say, '----') to a file - appending some whitespace and a header, e.g a datestamp - and opening the file to edit """ # TODO: way of making a program version tied to a specific file import optparse import sys def main(args=sys.argv[1:]): usage = "%prog [options] file" parser = optparse.OptionParser() parser.add_option('-s', '--separator', dest='separator', default='----', help='record separator') parser.add_option('-d', '--date-format', dest='date_format', help="date format") options, args = parser.parse_args(args)