I explicitly wrote this function to convert a string option to a string so I could pass the result to e.g. Lwt_log.info_f "%S" (in this case passing it log_command_f which I defined a couple of lines lower).
Is there a better way to accomplish this?