diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2024-02-24 23:20:14 +0000 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2024-02-24 23:20:14 +0000 |
| commit | 5f81d796fed4e4efbaf6dbed7d3c69481afddeb3 (patch) | |
| tree | c99b6232a003f5a04e9ba0624d842aac8ac43462 /src/command/help.rs | |
| parent | 442ebaf901a8ca686ce769325054e1f393d43b7c (diff) | |
Add status command
Diffstat (limited to 'src/command/help.rs')
| -rw-r--r-- | src/command/help.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/command/help.rs b/src/command/help.rs index 628fd5a..7ddcba8 100644 --- a/src/command/help.rs +++ b/src/command/help.rs @@ -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(()) |