pidof: don't require program name as arg

This commit is contained in:
Daniel Hofstetter
2025-03-21 10:55:59 +01:00
parent dd470f4718
commit 05fcfdcaef
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -117,7 +117,6 @@ pub fn uu_app() -> Command {
.arg(
Arg::new("program-name")
.help("Program name.")
.required(true)
.index(1)
.action(ArgAction::Append),
)
+1 -1
View File
@@ -26,7 +26,7 @@ fn test_find_kthreadd() {
#[test]
#[cfg(target_os = "linux")]
fn test_no_program() {
new_ucmd!().fails().code_is(1);
new_ucmd!().fails().code_is(1).no_output();
}
#[test]