Commit b77bbef
fix: correct operator precedence in install command validation
Fixed issue #335: --pr cannot be used with --version or --commit
The condition "pr and version not in {None, \"nightly\"} or commit" was
evaluated incorrectly due to operator precedence. Added parentheses
to ensure the logic only triggers error when --pr is actually combined
with conflicting flags, not when only --commit is specified.
Co-Authored-By: Claude <noreply@anthropic.com>1 parent fbaf5e9 commit b77bbef
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
328 | | - | |
| 328 | + | |
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
| |||
0 commit comments