Explorar el Código

add golang output default

yokyo hace 6 años
padre
commit
febfc65879
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  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