Mercurial > repos > galaxyp > bumbershoot
view idpicker_wrapper.py @ 10:30196ab1f278 draft
Uploaded
author | galaxyp |
---|---|
date | Tue, 25 Jun 2013 15:47:01 -0400 |
parents | 35cf23cd8c3d |
children |
line wrap: on
line source
#!/usr/bin/env python import optparse import sys import os def stop_err(msg): sys.stderr.write("%s\n" % msg) sys.exit(-1) def build_groups(input): os.makedir("input_directory") def main(): parser = optparse.OptionParser() parser.add_option('--input') parser.add_option('--output') (options, args) = parser.parse_args() if not len(options.input): stop_err("No input file found") build_groups(options.input) if __name__ == '__main__': main()