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:
parent
b8e233e305
commit
ebbf8ade1e
2 changed files with 14 additions and 25 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue