Files
v2ray-proxy/src/main.rs

28 lines
643 B
Rust
Raw Normal View History

2023-10-08 20:46:52 +03:30
mod parser;
2023-10-24 17:00:00 +03:30
use clap::{Parser, Subcommand};
use std::path::PathBuf;
#[derive(Parser)]
#[command(author, version, about, long_about = None)]
struct Cli {
uri: String,
#[arg(short, long, value_name = "socksport")]
socksport: Option<u16>,
}
2023-10-06 18:16:44 +03:30
fn main() {
2023-10-24 17:00:00 +03:30
let cli = Cli::parse();
match cli.socksport {
Some(port) => {
println!("the port: {}", port)
}
None => {
println!("the port is not here")
}
};
println!("the uri is: {}", cli.uri);
// let args: Vec<String> = std::env::args().collect();
// let uri = args.get(1).unwrap();
// parser::parse(uri);
2023-10-06 18:16:44 +03:30
}