From c28a41dc93e9a919b5d6dfb2dc4e0120a7abfe1b Mon Sep 17 00:00:00 2001 From: LeChatP Date: Tue, 14 May 2024 10:23:17 +0200 Subject: [PATCH] fixes --- src/sr/cli.pest | 2 +- src/sr/main.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sr/cli.pest b/src/sr/cli.pest index 464bc9a9..67cda5ab 100644 --- a/src/sr/cli.pest +++ b/src/sr/cli.pest @@ -1,6 +1,6 @@ cli = { SOI ~ sr ~ options ~ command ~ EOI } -sr = _{ "sr" } +sr = _{ name } options = _{ (role_opt | task_opt | prompt_opt | info | help)* } diff --git a/src/sr/main.rs b/src/sr/main.rs index 74ea4be9..20a237fe 100644 --- a/src/sr/main.rs +++ b/src/sr/main.rs @@ -557,6 +557,7 @@ mod tests { task: None, prompt: PAM_PROMPT.to_string(), info: false, + help: false, command: vec!["ls".to_string(), "-l".to_string()], }; let user = Cred {