Commit 512db84
Fix argument validation for --set-default flag
- Replace static cobra.RangeArgs(1, 2) with custom validation function
- Allow 0 arguments when --set-default flag is provided
- Maintain 1-2 argument requirement for normal workspace operations
- Resolves issue where 'brev open --set-default cursor' failed with arg validation error
Co-Authored-By: Alec Fong <alecsanf@usc.edu>1 parent 0e3c18b commit 512db84
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
69 | 75 | | |
70 | 76 | | |
71 | 77 | | |
| |||
0 commit comments