comparison makeitso/file2template.py @ 184:be33152d7d0c

STUB: makeitso/file2template.py
author Jeff Hammel <k0scist@gmail.com>
date Sun, 23 Mar 2014 18:27:50 -0700
parents 55b34a5a2e5f
children
comparison
equal deleted inserted replaced
183:55b34a5a2e5f 184:be33152d7d0c
49 type=argparse.FileType('r'), default=sys.stdin, 49 type=argparse.FileType('r'), default=sys.stdin,
50 help='input file, or read from stdin if ommitted') 50 help='input file, or read from stdin if ommitted')
51 self.add_argument('variables', nargs='*', 51 self.add_argument('variables', nargs='*',
52 help="variables to use") 52 help="variables to use")
53 self.add_argument('-o', '--output', dest='output', 53 self.add_argument('-o', '--output', dest='output',
54 type=argparse.FileType('r'), default=sys.stdout, 54 type=argparse.FileType('w'), default=sys.stdout,
55 help="output file, or stdout if ommitted'") 55 help="output file, or stdout if ommitted'")
56 56
57 57
58 def main(args=sys.argv[1:]): 58 def main(args=sys.argv[1:]):
59 """CLI""" 59 """CLI"""