mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
id: permit repeated flags
This commit is contained in:
parent
73db512ab5
commit
e978fe5382
2 changed files with 6 additions and 0 deletions
|
@ -324,6 +324,7 @@ pub fn uu_app() -> Command {
|
||||||
.about(ABOUT)
|
.about(ABOUT)
|
||||||
.override_usage(format_usage(USAGE))
|
.override_usage(format_usage(USAGE))
|
||||||
.infer_long_args(true)
|
.infer_long_args(true)
|
||||||
|
.args_override_self(true)
|
||||||
.arg(
|
.arg(
|
||||||
Arg::new(options::OPT_AUDIT)
|
Arg::new(options::OPT_AUDIT)
|
||||||
.short('A')
|
.short('A')
|
||||||
|
|
|
@ -327,6 +327,11 @@ fn test_id_default_format() {
|
||||||
.args(&args)
|
.args(&args)
|
||||||
.succeeds()
|
.succeeds()
|
||||||
.stdout_only(unwrap_or_return!(expected_result(&ts, &args)).stdout_str());
|
.stdout_only(unwrap_or_return!(expected_result(&ts, &args)).stdout_str());
|
||||||
|
let args = [opt2, opt2];
|
||||||
|
ts.ucmd()
|
||||||
|
.args(&args)
|
||||||
|
.succeeds()
|
||||||
|
.stdout_only(unwrap_or_return!(expected_result(&ts, &args)).stdout_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue