Handle true/false commands in format_command properly