Untested but plausible fix for saving cli input to the log file