Skip to content
This repository was archived by the owner on Sep 17, 2023. It is now read-only.

Commit 6df3c0d

Browse files
renovate[bot]EricCrosson
authored andcommitted
fix(deps): update rust crate clap to v4
1 parent 5bf90bd commit 6df3c0d

File tree

3 files changed

+21
-23
lines changed

3 files changed

+21
-23
lines changed

Cargo.lock

Lines changed: 17 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ path = "src/main.rs"
1010
[dependencies]
1111
anyhow = "1.0.57"
1212
askama = "0.11.1"
13-
clap = { version = "3.2.4", features = ["cargo", "derive"] }
13+
clap = { version = "4.0.8", features = ["cargo", "derive"] }
1414
globwalk = "0.8.1"
1515
indoc = "1.0.7"
1616
pariter = "0.5.1"

src/opts.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::path::PathBuf;
22

3-
use clap::{crate_version, ArgEnum, Parser};
3+
use clap::{crate_version, Parser, ValueEnum};
44

55
#[derive(Parser)]
66
#[clap(name = "monorepo", version = crate_version!(), author = "Eric Crosson <eric.s.crosson@utexas.edu>")]
@@ -73,7 +73,7 @@ pub enum ClapQuerySubCommand {
7373
InternalDependencies(InternalDependencies),
7474
}
7575

76-
#[derive(ArgEnum, Clone)]
76+
#[derive(ValueEnum, Clone)]
7777
pub enum InternalDependenciesFormat {
7878
Name,
7979
Path,
@@ -85,7 +85,7 @@ pub struct InternalDependencies {
8585
#[clap(short, long, default_value = ".")]
8686
pub root: PathBuf,
8787
/// Format in which to describe internal dependencies (defaults to name)
88-
#[clap(long = "format", arg_enum, default_value = "name")]
88+
#[clap(long = "format", value_enum, default_value = "name")]
8989
pub format: InternalDependenciesFormat,
9090
}
9191

0 commit comments

Comments
 (0)