mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
realpath: require arguments again
This commit is contained in:
@@ -171,6 +171,7 @@ pub fn uu_app() -> Command {
|
||||
.arg(
|
||||
Arg::new(ARG_FILES)
|
||||
.action(ArgAction::Append)
|
||||
.required(true)
|
||||
.value_parser(NonEmptyStringValueParser::new())
|
||||
.value_hint(clap::ValueHint::AnyPath),
|
||||
)
|
||||
|
||||
@@ -453,3 +453,8 @@ fn test_realpath_trailing_slash() {
|
||||
.succeeds()
|
||||
.stdout_contains(format!("{}no_dir\n", std::path::MAIN_SEPARATOR));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_realpath_empty() {
|
||||
new_ucmd!().fails().code_is(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user