Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/cli/cli_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,15 +151,15 @@ impl PrefixUpdateConfig {
#[derive(Parser, Debug, Default, Clone)]
pub struct GitRev {
/// The git branch
#[clap(long, requires = "git", conflicts_with_all = ["tag", "rev"], group="git_group")]
#[clap(long, requires = "git", conflicts_with_all = ["tag", "rev"])]
pub branch: Option<String>,

/// The git tag
#[clap(long, requires = "git", conflicts_with_all = ["branch", "rev"], group="git_group")]
#[clap(long, requires = "git", conflicts_with_all = ["branch", "rev"])]
pub tag: Option<String>,

/// The git revision
#[clap(long, requires = "git", conflicts_with_all = ["branch", "tag"], group="git_group")]
#[clap(long, requires = "git", conflicts_with_all = ["branch", "tag"])]
pub rev: Option<String>,
}

Expand Down Expand Up @@ -258,15 +258,15 @@ pub struct DependencyConfig {
pub feature: FeatureName,

/// The git url to use when adding a git dependency
#[clap(long, short, group = "git_group")]
#[clap(long, short)]
pub git: Option<Url>,

#[clap(flatten)]
/// The git revisions to use when adding a git dependency
pub rev: Option<GitRev>,

/// The subdirectory of the git repository to use
#[clap(long, short, requires = "git", group = "git_group")]
#[clap(long, short, requires = "git")]
pub subdir: Option<String>,
}

Expand Down
Loading