comparison .emacs @ 633:d37391e845f5

STUB: .emacs
author Jeff Hammel <k0scist@gmail.com>
date Mon, 24 Feb 2014 14:37:28 -0800
parents e92bd004b906
children 6dedad97c4eb
comparison
equal deleted inserted replaced
632:1aca90a263e8 633:d37391e845f5
163 here = os.path.dirname(os.path.realpath(__file__)) 163 here = os.path.dirname(os.path.realpath(__file__))
164 164
165 def main(args=sys.argv[1:]): 165 def main(args=sys.argv[1:]):
166 166
167 parser = argparse.ArgumentParser(description=__doc__) 167 parser = argparse.ArgumentParser(description=__doc__)
168 parser.add_option('input', nargs='?', 168 parser.add_argument('input', nargs='?',
169 type=argparse.FileType('r'), default=sys.stdin, 169 type=argparse.FileType('r'), default=sys.stdin,
170 help='input file, or read from stdin if ommitted') 170 help='input file, or read from stdin if ommitted')
171 options = parser.parse_args(args) 171 options = parser.parse_args(args)
172 172
173 if __name__ == '__main__': 173 if __name__ == '__main__':
174 main()") 174 main()")
175 ;; TODO: take directly from MakeItSo 175 ;; TODO: take directly from MakeItSo