Browse Source

add golang output default

yokyo 5 years ago
parent
commit
febfc65879
1 changed files with 4 additions and 1 deletions
  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