From f2d612b64bd3b89cb6c7bd59b36192891ae49ab6 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 7 Dec 2021 14:44:43 +0100 Subject: Fix: Do not use deprecated Arg::with_name() Signed-off-by: Matthias Beyer --- src/cli.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cli.rs b/src/cli.rs index 3041e33..8e912e0 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -20,7 +20,7 @@ pub fn app<'a>() -> App<'a> { .version(crate_version!()) .about("Create profile") - .arg(Arg::with_name("name") + .arg(Arg::new("name") .long("name") .required(true) .takes_value(true) @@ -34,7 +34,7 @@ pub fn app<'a>() -> App<'a> { .version(crate_version!()) .about("Just serve the profile") - .arg(Arg::with_name("name") + .arg(Arg::new("name") .long("name") .required(true) .takes_value(true) @@ -42,7 +42,7 @@ pub fn app<'a>() -> App<'a> { .about("Name of the profile") ) - .arg(Arg::with_name("connect") + .arg(Arg::new("connect") .long("connect") .required(false) .takes_value(true) -- cgit v1.2.3