Basic command line handling. Very basic error handling