From 9d24b7378294c625954d4ac1dce520525beecdf8 Mon Sep 17 00:00:00 2001 From: Diomidis Spinellis Date: Sat, 22 Mar 2025 14:26:04 +0200 Subject: [PATCH] Remove GNU --binary option There are specialized commands that can handle this (tr, dos2unit). Adding such support to every command runs against the Unix philosphy. Furthermore, Rust, for good reasons, does not support opening files in binary or text mode, so such support (which is complex and platform dependent) would have to be emulated. --- src/uu/sed/src/sed.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/uu/sed/src/sed.rs b/src/uu/sed/src/sed.rs index 48fa459..23e7637 100644 --- a/src/uu/sed/src/sed.rs +++ b/src/uu/sed/src/sed.rs @@ -118,7 +118,6 @@ pub fn uu_app() -> Command { .short('a') .help("Create or truncate all output files before processing.") .action(clap::ArgAction::SetTrue), - arg!(-b --binary "Treat files as binary: do not process CR+LFs."), arg!(--debug "Annotate program execution."), Arg::new("regexp-extended") .short('E')