Allow parameters without dir specification, but require -d for dirs.