Skip to content

Commit

Permalink
feat: add help argument
Browse files Browse the repository at this point in the history
  • Loading branch information
believer committed Mar 24, 2023
1 parent 3c2dff1 commit b7ce23e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
let needle = std::env::args().nth(2);

// Display help if no path is provided
if path.is_none() {
println!("Usage: todo <path>");
if path.is_none() || path == Some("--help".to_string()) {
println!("Usage: todo <path> [filter]");
return Ok(());
}

Expand Down

0 comments on commit b7ce23e

Please sign in to comment.