diff --git a/src/cli.rs b/src/cli.rs index 49decff..1c36a37 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -183,6 +183,10 @@ pub struct Record { #[arg(long, help = "Return the session's exit status", long_help)] pub return_: bool, + /// Enable logging of internal events to a file at the specified path. Useful for debugging recording issues. + #[arg(long, value_name = "PATH", help = "Log file path", long_help)] + pub log_file: Option, + #[arg(long, hide = true)] pub cols: Option, diff --git a/src/main.rs b/src/main.rs index 6577231..bae0feb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -56,7 +56,7 @@ fn main() -> ExitCode { stream_local: None, stream_remote: None, return_: cmd.return_, - log_file: None, + log_file: cmd.log_file, server_url: None, };