From 754ab48b9261b0f6243f2fadde660e23995a2d64 Mon Sep 17 00:00:00 2001 From: Cutieguwu Date: Fri, 2 Jan 2026 02:01:24 -0500 Subject: [PATCH] Cleanup. --- src/cli.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cli.rs b/src/cli.rs index 6728c9c..39dc564 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -31,14 +31,16 @@ pub struct Args { #[arg(short, long, default_value_t = crate::FB_SECTOR_SIZE)] pub sector_size: usize, - // Behaviour is backwards. + // !!! ArgAction behaviour is backwards !!! // ArgAction::SetFalse by default evaluates to true, // ArgAction::SetTrue by default evaluates to false. + // /// Upon encountering a read error, reopen the source file before continuing. #[arg(short, long, action = ArgAction::SetTrue)] pub reopen_on_error: bool, /// Use O_DIRECT to bypass kernel buffer when reading. + // // BSD seems to support O_DIRECT, but MacOS for certain does not. #[cfg(all(unix, not(target_os = "macos")))] #[arg(short, long = "direct", action = ArgAction::SetFalse)]