[cli-clean] made directory optional