feat: udpate clap args
This commit is contained in:
@@ -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(|| {
|
||||
|
||||
Reference in New Issue
Block a user