Skip to content

Commit

Permalink
Add cli args conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
delsner committed Jan 12, 2025
1 parent 9a581e6 commit e213be0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/rattler/src/cli/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ pub struct LoginArgs {
conda_token: Option<String>,

/// The S3 access key ID
#[clap(long)]
#[clap(long, requires_all = ["s3_secret_access_key"], conflicts_with_all = ["host", "token","username", "password", "conda_token"])]
s3_access_key_id: Option<String>,

/// The S3 secret access key
#[clap(long)]
#[clap(long, requires_all = ["s3_access_key_id"])]
s3_secret_access_key: Option<String>,

/// The S3 session token
#[clap(long)]
#[clap(long, requires_all = ["s3_access_key_id"])]
s3_session_token: Option<String>,
}

Expand Down

0 comments on commit e213be0

Please sign in to comment.