This commit is contained in:
Aditya Kulkarni
2019-09-06 14:25:14 -07:00
parent 48d305c406
commit d308772965
3 changed files with 20 additions and 5 deletions

View File

@@ -39,6 +39,7 @@ impl Command for HelpCommand {
fn exec(&self, _args: &[String], _: &mut LightClient) {
// Print a list of all commands
println!("Available commands:");
get_commands().iter().for_each(| (cmd, obj) | {
println!("{} - {}", cmd, obj.short_help());
});