diff --git a/README.md b/README.md index 4cf32ca..f9d6ef0 100644 --- a/README.md +++ b/README.md @@ -40,14 +40,14 @@ configured to listen on a local UDP port and communicates with the upstream DNS ``` Tunnel interface to proxy. -Usage: tun2proxy --tun --proxy --addr +Usage: tun2proxy --tun --proxy --addr Options: - -t, --tun Name of the tun interface - -p, --proxy What proxy type to run [possible values: socks5, http] - -a, --addr Server address with format IP:PORT - -h, --help Print help (see more with '--help') - -V, --version Print version + -t, --tun Name of the tun interface + -p, --proxy What proxy type to run [possible values: socks5, http] + -a, --addr Server address with format ip:port + -h, --help Print help (see more with '--help') + -V, --version Print version ``` ## TODO diff --git a/src/main.rs b/src/main.rs index d43a7a7..ad2162d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -15,15 +15,15 @@ use std::net::SocketAddr; #[command(author, version, about = "Tunnel interface to proxy.", long_about = None)] struct Args { /// Name of the tun interface - #[arg(short, long)] + #[arg(short, long, value_name = "name")] tun: String, /// What proxy type to run - #[arg(short, long = "proxy", value_enum)] + #[arg(short, long = "proxy", value_name = "type", value_enum)] proxy_type: ProxyType, - /// Server address with format IP:PORT - #[clap(short, long)] + /// Server address with format ip:port + #[clap(short, long, value_name = "ip:port")] addr: SocketAddr, }