fix(profile): make clone-from a full source selector

This commit is contained in:
Teknium
2026-06-13 07:33:58 -07:00
parent d146b85173
commit 9b5f7b63c6
7 changed files with 32 additions and 22 deletions
+2 -2
View File
@@ -784,9 +784,9 @@ def create_profile(
Path
The newly created profile directory.
"""
if no_skills and (clone_config or clone_all):
if no_skills and (clone_from is not None or clone_config or clone_all):
raise ValueError(
"--no-skills is mutually exclusive with --clone / --clone-all "
"--no-skills is mutually exclusive with --clone / --clone-from / --clone-all "
"(cloning explicitly copies skills from the source profile)."
)
canon = normalize_profile_name(name)