mirror of
https://github.com/Waradu/to-streamshare.git
synced 2025-04-21 20:04:06 +02:00
show help menu when no input
This commit is contained in:
parent
e79191cb5f
commit
591930bdef
3 changed files with 4 additions and 4 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue