mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
cut,touch: show ignored args (#9040)
This commit is contained in:
@@ -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),
|
||||
)
|
||||
}
|
||||
|
||||
@@ -292,7 +292,6 @@ pub fn uu_app() -> Command {
|
||||
Arg::new(options::FORCE)
|
||||
.short('f')
|
||||
.help("(ignored)")
|
||||
.hide(true)
|
||||
.action(ArgAction::SetTrue),
|
||||
)
|
||||
.arg(
|
||||
|
||||
Reference in New Issue
Block a user