1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-09-15 11:36:16 +00:00

relpath: show error if no argument provided

Fixes #5300
This commit is contained in:
Daniel Hofstetter 2023-09-22 10:58:12 +02:00
parent a2691c9f4a
commit 38831c46d1
2 changed files with 12 additions and 1 deletions

View file

@ -180,3 +180,10 @@ fn test_relpath_no_from_with_d() {
assert!(Path::new(&result_stdout).is_absolute());
}
}
#[test]
fn test_relpath_no_to() {
new_ucmd!()
.fails()
.stderr_contains("required arguments were not provided");
}