Use argv[0] to get the command name for the usage info.
More helpful messages should patching fail.
Add append_hunk function to the api.