show help menu when no input

This commit is contained in:
Waradu 2024-10-19 23:28:59 +02:00
parent e79191cb5f
commit 591930bdef
No known key found for this signature in database
GPG key ID: F85AAC8BA8B8DAAD
3 changed files with 4 additions and 4 deletions

View file

@ -1,4 +1,4 @@
use clap::Parser;
use clap::{CommandFactory, Parser};
use streamshare::upload;
#[derive(Parser, Debug)]
@ -44,7 +44,7 @@ async fn main() {
Err(e) => eprintln!("Error: {}", e),
}
} else {
eprintln!("Please provide a file path or use --delete");
Args::command().print_help().unwrap();
}
}