Function parse_command
Source pub fn parse_command(input: &str) -> Option<(&str, &str)>
Expand description
Parse slash command from input, returning (command_name, args).
§Example
ⓘassert_eq!(parse_command("/help"), Some(("help", "")));
assert_eq!(parse_command("/echo hello"), Some(("echo", "hello")));
assert_eq!(parse_command("not a command"), None);