瀏覽代碼

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)
 		}
 	}