fixed issue in format-patch command

It checked for wrong number of params, so it was not possible to run it