diff --git a/Cargo.lock b/Cargo.lock index 4844ee0..9c828ad 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1306,7 +1306,7 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "to-streamshare" -version = "0.2.1" +version = "0.2.2" dependencies = [ "clap", "streamshare", diff --git a/Cargo.toml b/Cargo.toml index 801ab4e..6a9f482 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "to-streamshare" -version = "0.2.1" +version = "0.2.2" edition = "2021" description = "Upload to streamshare (to-ss > toss) from the terminal" license = "MIT" diff --git a/src/main.rs b/src/main.rs index 82bd6df..936b74f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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(); } }