Perfect Script (python)
a clean python script template
Notes
- argparse > optparse
- subprocess.check_output > *
- return int from main() slightly more dry than multiple sys.exits from main()
- returning a parser instance seems more reusable than running parse_args from the function
- classes not needed in python for easy reuse
- do clunky script stuff in main(), option conditionals
Todo
- python3