From bef668bce8dc1022e7dde7b0da65fa64bb472cf4 Mon Sep 17 00:00:00 2001 From: Jokler Date: Sun, 13 May 2018 17:15:45 +0200 Subject: Remind: Change syntax and update help --- src/plugins/remind/mod.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/plugins/remind/mod.rs b/src/plugins/remind/mod.rs index 382fcaa..8f9b628 100644 --- a/src/plugins/remind/mod.rs +++ b/src/plugins/remind/mod.rs @@ -161,7 +161,10 @@ impl Remind { fn help(&self) -> &str { "usage: remind \r\n\ - subcommands: new, list, delete, help" + subcommands: user, list, delete, help\r\n\ + examples\r\n\ + remind user foo to sleep in 1 hour\r\n\ + remind user bar to leave early on 1.1 at 16:00 every week" } } @@ -195,7 +198,7 @@ impl Plugin for Remind { let sub_command = command.tokens.remove(0); let response = match sub_command.as_ref() { - "new" => self.set(command).map(|s| s.to_owned()), + "user" => self.set(command).map(|s| s.to_owned()), "delete" => self.delete(command).map(|s| s.to_owned()), "list" => self.list(&source), "help" => Ok(self.help().to_owned()), -- cgit v1.2.3-70-g09d2