From 1bfe461a6b12b7a55a15965000f18f2ed85bb58b Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Sun, 5 Nov 2023 17:32:45 +0800 Subject: [PATCH] feat: udpate clap args --- src/main.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index c79f8af..dda77af 100644 --- a/src/main.rs +++ b/src/main.rs @@ -15,9 +15,11 @@ use rust_util::util_msg::{clear_lastline, flush_stdout}; #[tokio::main] async fn main() { - let matches = App::new("wacat-rs") - .arg(Arg::with_name("connect").short("c").long("connect").takes_value(true).help("WebSocket URL")) - .arg(Arg::with_name("disable-ping-pong").long("disable-ping-pong").help("Disable ping/pong")) + let matches = App::new("wscat-rs") + .arg(Arg::with_name("connect").short("c").long("connect").takes_value(true) + .help("WebSocket URL, e.g. wss://example.com/websocket")) + .arg(Arg::with_name("disable-ping-pong").long("disable-ping-pong") + .help("Disable ping/pong")) .get_matches(); let connect = matches.value_of("connect").unwrap_or_else(|| {