1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

pr: use clap to handle help & version

This commit is contained in:
Daniel Hofstetter 2022-08-03 16:14:05 +02:00
parent b8e233e305
commit ebbf8ade1e
2 changed files with 14 additions and 25 deletions

View file

@ -469,3 +469,13 @@ fn test_value_for_number_lines() {
// Therefore, pr tries to access the file, which does not exist.
new_ucmd!().args(&["-n", "foo5.txt", "test.log"]).fails();
}
#[test]
fn test_help() {
new_ucmd!().arg("--help").succeeds();
}
#[test]
fn test_version() {
new_ucmd!().arg("--version").succeeds();
}