fixed bug in CLI build-in method "switches"