Merge chain command line

Sorry, I need to pull request this since I don't have push access.