Error when --group includes non-existent groups (#8394)

## Summary

Part of https://github.com/astral-sh/uv/pull/8272.
This commit is contained in:
Charlie Marsh 2024-10-21 22:08:31 -04:00 committed by Zanie Blue
parent 4d134a4ffe
commit c7ccf88939
6 changed files with 96 additions and 0 deletions

View file

@ -163,10 +163,12 @@ impl DevGroupsSpecification {
(self.dev.is_none() || self.dev.as_ref().is_some_and(DevMode::prod)) && self.groups.prod()
}
/// Returns the flag that was used to request development dependencies.
pub fn dev_mode(&self) -> Option<&DevMode> {
self.dev.as_ref()
}
/// Returns the list of groups to include.
pub fn groups(&self) -> &GroupsSpecification {
&self.groups
}