Use a single case block instead of repeated ifs for command parsing