From ecafc617b5693762822937cf09d330569fc01a2b Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sun, 17 Jul 2022 11:34:15 +0000 Subject: feat(input.rs): add help command --- src/command.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/command.rs') diff --git a/src/command.rs b/src/command.rs index 66f3139..7a53bf7 100644 --- a/src/command.rs +++ b/src/command.rs @@ -20,6 +20,7 @@ pub enum Command { Open(Option), Unknown, Wrap(u16, Option), + Help, } impl From for Command { fn from(s: String) -> Self { @@ -51,6 +52,7 @@ impl From for Command { } }, ), + Some("help" | "h") => Self::Help, _ => Self::Unknown, } } -- cgit v1.2.3