better command line error handling
2.2.1