Patch by Marc Rossi to add --hash to command line tools.