update clap to v3: net-utils
This commit is contained in:
parent
300c50798f
commit
3f2971692d
|
@ -11,7 +11,7 @@ edition = "2021"
|
|||
|
||||
[dependencies]
|
||||
bincode = "1.3.3"
|
||||
clap = "2.33.1"
|
||||
clap = { version = "3.1.5", features = ["cargo"] }
|
||||
crossbeam-channel = "0.5"
|
||||
log = "0.4.14"
|
||||
nix = "0.23.1"
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
use clap::{App, Arg};
|
||||
use clap::{Arg, Command};
|
||||
|
||||
fn main() {
|
||||
solana_logger::setup();
|
||||
let matches = App::new("solana-ip-address")
|
||||
let matches = Command::new("solana-ip-address")
|
||||
.version(solana_version::version!())
|
||||
.arg(
|
||||
Arg::with_name("host_port")
|
||||
Arg::new("host_port")
|
||||
.index(1)
|
||||
.required(true)
|
||||
.help("Host:port to connect to"),
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
use {
|
||||
clap::{App, Arg},
|
||||
clap::{Arg, Command},
|
||||
std::net::{SocketAddr, TcpListener},
|
||||
};
|
||||
|
||||
fn main() {
|
||||
solana_logger::setup();
|
||||
let matches = App::new("solana-ip-address-server")
|
||||
let matches = Command::new("solana-ip-address-server")
|
||||
.version(solana_version::version!())
|
||||
.arg(
|
||||
Arg::with_name("port")
|
||||
Arg::new("port")
|
||||
.index(1)
|
||||
.required(true)
|
||||
.help("TCP port to bind to"),
|
||||
|
|
Loading…
Reference in New Issue