File tree 1 file changed +4
-4
lines changed
examples/autonatv2/src/bin
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,18 +14,18 @@ use rand::rngs::OsRng;
14
14
use tracing_subscriber:: EnvFilter ;
15
15
16
16
#[ derive( Debug , Parser ) ]
17
- #[ clap ( name = "libp2p autonatv2 client" ) ]
17
+ #[ command ( name = "libp2p autonatv2 client" ) ]
18
18
struct Opt {
19
19
/// 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 ) ]
21
21
listen_port : u16 ,
22
22
23
23
/// Address of the server where want to connect to.
24
- #[ clap ( short = 'a' , long) ]
24
+ #[ arg ( short = 'a' , long) ]
25
25
server_address : Multiaddr ,
26
26
27
27
/// Probe interval in seconds.
28
- #[ clap ( short = 't' , long, default_value = "2" ) ]
28
+ #[ arg ( short = 't' , long, default_value = "2" ) ]
29
29
probe_interval : u64 ,
30
30
}
31
31
You can’t perform that action at this time.
0 commit comments