Skip to content

Commit

Permalink
feat: forbid unconsidered variant
Browse files Browse the repository at this point in the history
  • Loading branch information
KSXGitHub committed Aug 11, 2023
1 parent 82b9d74 commit d448f11
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/cli/src/commands/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ impl InstallCommandArgs {
/// which filters the types of dependencies to install.
fn get_dependency_groups(&self) -> impl Iterator<Item = DependencyGroup> {
let InstallCommandArgs { prod, dev, no_optional } = self;
if *prod && *dev {
todo!("What to do when both --prod and --dev present?");

Check warning on line 32 in crates/cli/src/commands/install.rs

View check run for this annotation

Codecov / codecov/patch

crates/cli/src/commands/install.rs#L32

Added line #L32 was not covered by tests
}
let has_both = !prod && !dev;
let has_prod = has_both || *prod;
let has_dev = has_both || *dev;
Expand Down

0 comments on commit d448f11

Please sign in to comment.