Skip to content

Commit f069f1a

Browse files
authored
fix
1 parent 870cddd commit f069f1a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/autonatv2/src/bin/autonatv2_client.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@ use rand::rngs::OsRng;
1414
use tracing_subscriber::EnvFilter;
1515

1616
#[derive(Debug, Parser)]
17-
#[clap(name = "libp2p autonatv2 client")]
17+
#[command(name = "libp2p autonatv2 client")]
1818
struct Opt {
1919
/// Port where the client will listen for incoming connections.
20-
#[clap(short = 'p', long, default_value_t = 0)]
20+
#[arg(short = 'p', long, default_value_t = 0)]
2121
listen_port: u16,
2222

2323
/// Address of the server where want to connect to.
24-
#[clap(short = 'a', long)]
24+
#[arg(short = 'a', long)]
2525
server_address: Multiaddr,
2626

2727
/// Probe interval in seconds.
28-
#[clap(short = 't', long, default_value = "2")]
28+
#[arg(short = 't', long, default_value = "2")]
2929
probe_interval: u64,
3030
}
3131

0 commit comments

Comments
 (0)