Skip to content

Commit 05fcfdc

Browse files
committed
pidof: don't require program name as arg
1 parent dd470f4 commit 05fcfdc

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/uu/pidof/src/pidof.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ pub fn uu_app() -> Command {
117117
.arg(
118118
Arg::new("program-name")
119119
.help("Program name.")
120-
.required(true)
121120
.index(1)
122121
.action(ArgAction::Append),
123122
)

tests/by-util/test_pidof.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ fn test_find_kthreadd() {
2626
#[test]
2727
#[cfg(target_os = "linux")]
2828
fn test_no_program() {
29-
new_ucmd!().fails().code_is(1);
29+
new_ucmd!().fails().code_is(1).no_output();
3030
}
3131

3232
#[test]

0 commit comments

Comments
 (0)