diff options
| -rw-r--r-- | src/main.rs | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/src/main.rs b/src/main.rs index 84157fb..ba6b086 100644 --- a/src/main.rs +++ b/src/main.rs @@ -29,13 +29,18 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> { for arg in &args[1..] { match arg.as_ref() { - "-y" | "--yes" => action = Some(EventResponseStatus::Accepted), - "-n" | "--no" => action = Some(EventResponseStatus::Declined), - "-m" | "--maybe" => action = Some(EventResponseStatus::Tentative), - - "--email" => email = true, - - id => event_ids.push(id), + "-y" | "--yes" => + action = Some(EventResponseStatus::Accepted), + "-n" | "--no" => + action = Some(EventResponseStatus::Declined), + "-m" | "--maybe" => + action = Some(EventResponseStatus::Tentative), + + "--email" => + email = true, + + id => + event_ids.push(id), } } |
