فهرست منبع

Made issues.go check if arg is a file

arianagiroux 2 هفته پیش
والد
کامیت
54dd8c3af2
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      cmd/issues.go

+ 3 - 0
cmd/issues.go

@@ -32,6 +32,9 @@ func main() {
 				fmt.Printf("%s is a directory...\n", arg[0])
 				os.Exit(1)
 			}
+		} else {
+			fmt.Printf("%s is an existing file...\n", arg[0])
+			os.Exit(1)
 		}
 	}