Change merge command to accept global flags.
Fix feature for merge command.