update clap to v3: net-utils

This commit is contained in:
klykov
2022-03-07 17:23:22 +01:00
committed by kirill lykov
parent 300c50798f
commit 3f2971692d
3 changed files with 7 additions and 7 deletions

View File

@@ -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"),

View File

@@ -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"),