X-Git-Url: https://git.r.bdr.sh/rbdr/blog/blobdiff_plain/a9c6be4162bd15bd41ba3605127b56cb1eb32f32..b17907faf8d9693cef94a6048d802bd4ced9102f:/src/command/help.rs?ds=sidebyside diff --git a/src/command/help.rs b/src/command/help.rs index 8d2a2c0..b682fc0 100644 --- a/src/command/help.rs +++ b/src/command/help.rs @@ -1,6 +1,6 @@ -use std::io::Result; use super::available_commands; use crate::configuration::Configuration; +use std::io::Result; pub struct Help; @@ -15,15 +15,15 @@ impl super::Command for Help { vec![] } - fn execute(&self, _: Option<&String>, _: &Configuration, _: &String) -> Result<()> { + fn execute(&self, _: Option<&String>, _: &Configuration, _: &str) -> Result<()> { let commands = available_commands(); println!("Usage:"); - println!(""); + println!(); for command in commands { print!("blog {} ", command.command()); println!("{}", command.help()); } - return Ok(()) + Ok(()) } fn after_dependencies(&self) -> Vec> {