remove unnecessary command options