Commit 2d31323

Anton Medvedev <anton@medv.io>
2025-12-01 21:04:50
Add error handling for multiple repo inputs in `main.go`
1 parent 80e5f5d
Changed files (1)
main.go
@@ -72,9 +72,12 @@ func main() {
 
 	input := "."
 	args := flag.Args()
-	if len(args) > 0 {
+	if len(args) == 1 {
 		input = args[0]
 	}
+	if len(args) > 1 {
+		panic("Multiple repos not supported yet")
+	}
 
 	if flagPreviewThemes {
 		previewThemes()