logical xor on validation of :command and :extension