aboutsummaryrefslogtreecommitdiff
path: root/src/command/help.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/command/help.rs')
-rw-r--r--src/command/help.rs8
1 files changed, 4 insertions, 4 deletions
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<Box<dyn super::Command>> {