Exit on wrong arguments from git helper functions