cut,touch: show ignored args (#9040)

This commit is contained in:
n4n5
2025-10-27 08:32:01 +01:00
committed by GitHub
parent cbe20c9bff
commit 85c92f2684
2 changed files with 8 additions and 1 deletions
+8
View File
@@ -464,6 +464,8 @@ mod options {
pub const WHITESPACE_DELIMITED: &str = "whitespace-delimited";
pub const COMPLEMENT: &str = "complement";
pub const FILE: &str = "file";
// ignored option
pub const NOTHING: &str = "nothing";
}
#[uucore::main]
@@ -683,4 +685,10 @@ pub fn uu_app() -> Command {
.value_hint(clap::ValueHint::FilePath)
.value_parser(clap::value_parser!(OsString)),
)
.arg(
Arg::new(options::NOTHING)
.short('n')
.help("(ignored)")
.action(ArgAction::SetTrue),
)
}
-1
View File
@@ -292,7 +292,6 @@ pub fn uu_app() -> Command {
Arg::new(options::FORCE)
.short('f')
.help("(ignored)")
.hide(true)
.action(ArgAction::SetTrue),
)
.arg(