]> git.r.bdr.sh - rbdr/blog/blobdiff - src/command/help.rs
Add status command
[rbdr/blog] / src / command / help.rs
index 628fd5aa81a25a5371de0cfc74ab81e22f6f2c3e..7ddcba8f5b9d6b275b1bdf0a8f625380d3f0d65f 100644 (file)
@@ -1,4 +1,3 @@
-use std::env::args;
 use std::io::Result;
 use super::available_commands;
 
@@ -16,13 +15,11 @@ impl super::Command for Help {
     }
 
     fn execute(&self, _: Option<&String>) -> Result<()> {
-        let arguments: Vec<String> = args().collect();
-        let app_name = arguments.get(0).map_or("blog", |s| s.as_str());
         let commands = available_commands();
         println!("Usage:");
         println!("");
         for command in commands {
-            print!("{} {} ", app_name, command.command());
+            print!("blog {} ", command.command());
             println!("{}", command.help());
         }
         return Ok(())