Added input validation on --prune {int}