diff options
| author | Fuwn <[email protected]> | 2022-07-17 11:34:15 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-07-17 11:34:15 +0000 |
| commit | ecafc617b5693762822937cf09d330569fc01a2b (patch) | |
| tree | a675f4062d5768c1a3981b6b9b441d692fb56a9d /src/command.rs | |
| parent | docs(README.md): expanding gif link (diff) | |
| download | sydney-ecafc617b5693762822937cf09d330569fc01a2b.tar.xz sydney-ecafc617b5693762822937cf09d330569fc01a2b.zip | |
feat(input.rs): add help command
Diffstat (limited to 'src/command.rs')
| -rw-r--r-- | src/command.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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<String>), Unknown, Wrap(u16, Option<String>), + Help, } impl From<String> for Command { fn from(s: String) -> Self { @@ -51,6 +52,7 @@ impl From<String> for Command { } }, ), + Some("help" | "h") => Self::Help, _ => Self::Unknown, } } |