Add --log-file option for rec command

This commit is contained in:
Marcin Kulik
2025-06-24 14:29:05 +02:00
parent f7f82672a6
commit 21610660a7
2 changed files with 5 additions and 1 deletions

View File

@@ -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<PathBuf>,
#[arg(long, hide = true)]
pub cols: Option<u16>,

View File

@@ -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,
};