Simplified get_diag_tty_name call, prepare for multi-mode support
No need for extra flag
Initial support for commands from command line