Make sure that one of project_src and definition is provided. (#886)

This commit is contained in:
Felix Fontein
2024-06-16 21:49:20 +02:00
committed by GitHub
parent a5b5681608
commit 4cac2ac021
3 changed files with 7 additions and 2 deletions
+3
View File
@@ -518,6 +518,9 @@ def common_compose_argspec_ex():
('definition', 'project_src'),
('definition', 'files')
],
required_one_of=[
('definition', 'project_src'),
],
required_by={
'definition': ('project_name', ),
},