Add help entry
Would like to make this generalizeable
This commit is contained in:
parent
8dc8d15437
commit
f3c8474c93
@ -183,6 +183,12 @@ impl Repl {
|
|||||||
println!("{}", item);
|
println!("{}", item);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"help" => {
|
||||||
|
println!("Commands:");
|
||||||
|
println!("exit | quit");
|
||||||
|
println!("lang [show|next|previous]");
|
||||||
|
println!("set [show|hide] [tokens|parse|eval|llvm]");
|
||||||
|
}
|
||||||
"lang" => {
|
"lang" => {
|
||||||
match commands.get(1) {
|
match commands.get(1) {
|
||||||
Some(&"show") => {
|
Some(&"show") => {
|
||||||
|
Loading…
Reference in New Issue
Block a user