This patch makes interactive mode as the default when using the crashlog
command. It replaces the existing -i|--interactive flag with a new
-m|--mode option, that can either be interactive or batch.
By default, when the option is not explicitely set by the user, the
interactive mode is selected, however, lldb will fallback to batch
mode if the command interpreter is not interactive or if stdout is not
a tty.
This also adds some railguards to prevent users from using interactive
only options with the batch mode and updates the tests accordingly.
rdar://97801509
Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
nit: no need to remove this line.