Add better command line parsing error handling
Add --hostname command line flag.