Check arguments before running slave.