summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-12-07 14:44:43 +0100
committerMatthias Beyer <mail@beyermatthias.de>2021-12-07 14:44:43 +0100
commitf2d612b64bd3b89cb6c7bd59b36192891ae49ab6 (patch)
tree7580167acf5b58673bfb4a5d77f66a335347ab64 /src
parent2b6e6789b4a0eb63709551be0b1de481a2d9b1bb (diff)
Fix: Do not use deprecated Arg::with_name()
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src')
-rw-r--r--src/cli.rs6
1 files 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)