diff options
Diffstat (limited to 'src/poem')
-rw-r--r-- | src/poem/anthology.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/poem/anthology.rs b/src/poem/anthology.rs index 9a0d2e4..e48e6c6 100644 --- a/src/poem/anthology.rs +++ b/src/poem/anthology.rs @@ -14,6 +14,10 @@ static INDEX: [&str; 7] = [ /// Lookup the index of a built-in command /// /// Looks up the index of a built-in command in [INDEX], accounting for aliases. +/// +/// # Aliases +/// * quit -> exit +/// * set -> export pub fn lookup(verb: &str) -> Option<usize> { let verb = match verb { "quit" => "exit", // Alias 'quit' to 'exit' |