Add tty and stdin_open flags. Change 'cmd' syntax to 'command