File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ def parse_args():
25
25
dest = 'many' , help = 'Build for a single version/kind' )
26
26
parser .add_argument ('--single-version' ,
27
27
help = 'Build for a specific version/kind' )
28
+ parser .add_argument ('--single-version-embeddable' , action = 'store_true' ,
29
+ help = 'When building a single version, build an embeddable extractor (default is standalone)' )
28
30
return parser .parse_args ()
29
31
30
32
@@ -235,7 +237,13 @@ def compile_standalone(version):
235
237
236
238
237
239
if args .single_version :
238
- compile_standalone (args .single_version )
240
+ if args .single_version_embeddable == True :
241
+ compile_embeddable (args .single_version )
242
+ else :
243
+ compile_standalone (args .single_version )
244
+ elif args .single_version_embeddable == True :
245
+ print ("--single-version-embeddable requires --single-version" , file = sys .stderr )
246
+ sys .exit (1 )
239
247
elif args .many :
240
248
for version in kotlin_plugin_versions .many_versions :
241
249
compile_standalone (version )
You can’t perform that action at this time.
0 commit comments