Commit df1b35e
committed
Simplify URL detection: only check first arg after 'index'
Remove argument reordering logic. URL must now appear immediately
after 'index', consistent with how other subcommands work:
ctxc index https://github.com/owner/repo -i name ✓
ctxc index -i name https://github.com/owner/repo ✗ (error)
This is more predictable and matches CLI conventions.1 parent ad138f4 commit df1b35e
1 file changed
+6
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
50 | 40 | | |
51 | 41 | | |
52 | 42 | | |
| |||
0 commit comments