Skip to content

Commit

Permalink
fix: one todo item
Browse files Browse the repository at this point in the history
  • Loading branch information
prateekmedia committed Aug 2, 2023
1 parent efdccc1 commit c113a73
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 2 additions & 0 deletions src/rust/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,8 @@ pub struct Args {
/// Flush the file buffer whenever content is written.
#[arg(long, verbatim_doc_comment, help_heading=OUTPUT_AFFECTING_BUFFERING)]
pub forceflush: bool,
#[arg(long, hide = true)]
pub append: bool,
/// Direct Roll-Up. When in roll-up mode, write character by
/// character instead of line by line. Note that this
/// produces (much) larger files.
Expand Down
9 changes: 4 additions & 5 deletions src/rust/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ fn main() {
opt.live_stream = Some(-1);
}

// #[cfg(feature = "hardsubx_ocr")]
#[cfg(feature = "hardsubx_ocr")]
{
if args.hardsubx {
opt.hardsubx = Some(1);
Expand Down Expand Up @@ -258,10 +258,9 @@ fn main() {
opt.force_flush = Some(1);
}

// TODO(prateekmedia): Check this too
// if args.append {
// opt.append_mode = Some(1);
// }
if args.append {
opt.append_mode = Some(1);
}

match args.buffersize {
Some(buffersize) => unsafe {
Expand Down

0 comments on commit c113a73

Please sign in to comment.