This is the source code examples taken from Violent Python by TJ O'Connor with some changes to the code to include the use of Docopt etc.