Support for --verbose option and error handling in generate-diff command