mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
realpath: require arguments again
This commit is contained in:
parent
b0c200e831
commit
14e3c5176c
2 changed files with 6 additions and 0 deletions
|
@ -171,6 +171,7 @@ pub fn uu_app() -> Command {
|
||||||
.arg(
|
.arg(
|
||||||
Arg::new(ARG_FILES)
|
Arg::new(ARG_FILES)
|
||||||
.action(ArgAction::Append)
|
.action(ArgAction::Append)
|
||||||
|
.required(true)
|
||||||
.value_parser(NonEmptyStringValueParser::new())
|
.value_parser(NonEmptyStringValueParser::new())
|
||||||
.value_hint(clap::ValueHint::AnyPath),
|
.value_hint(clap::ValueHint::AnyPath),
|
||||||
)
|
)
|
||||||
|
|
|
@ -453,3 +453,8 @@ fn test_realpath_trailing_slash() {
|
||||||
.succeeds()
|
.succeeds()
|
||||||
.stdout_contains(format!("{}no_dir\n", std::path::MAIN_SEPARATOR));
|
.stdout_contains(format!("{}no_dir\n", std::path::MAIN_SEPARATOR));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_realpath_empty() {
|
||||||
|
new_ucmd!().fails().code_is(1);
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue