Quote result of rev-parse to fix path with spaces bug.
Add options: string to the help message.
Fix handling of command line arguments.