mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-15 11:17:58 +01:00
Add --log-file option for rec command
This commit is contained in:
@@ -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>,
|
||||
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user