瀏覽代碼

add golang output default

yokyo 6 年之前
父節點
當前提交
febfc65879
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      build

+ 4 - 1
build

@@ -7,7 +7,10 @@ def main():
     parser.add_argument('-g', '--golang', help='build proto to golang output', action='store_true')
     parser.add_argument('-p', '--python', help='build proto to python output', action='store_true')
     args = parser.parse_args()
-
+    
+    if not args.golang and not args.python:
+        args.golang = True
+        
     for cur, dirs, files in os.walk('.'):
         if cur[2:8] == 'google':
             continue