ch-remote, main, vhost_user: Fix deprecated APIs for clap v3.1.0
Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
parent
5fd49927f2
commit
0ee8ead53d
4 changed files with 43 additions and 39 deletions
|
|
@ -9,13 +9,13 @@
|
|||
#[macro_use(crate_version, crate_authors)]
|
||||
extern crate clap;
|
||||
|
||||
use clap::{App, Arg};
|
||||
use clap::{Arg, Command};
|
||||
use vhost_user_net::start_net_backend;
|
||||
|
||||
fn main() {
|
||||
env_logger::init();
|
||||
|
||||
let cmd_arguments = App::new("vhost-user-net backend")
|
||||
let cmd_arguments = Command::new("vhost-user-net backend")
|
||||
.version(crate_version!())
|
||||
.author(crate_authors!())
|
||||
.about("Launch a vhost-user-net backend.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue