@@ -310,6 +310,9 @@ func Main (_executable string, _argument0 string, _arguments []string, _environm
310
310
case "parse-library" :
311
311
_command = "parse-library"
312
312
313
+ case "parse-library-without-output" :
314
+ _command = "parse-library-without-output"
315
+
313
316
case "export-library-json" :
314
317
_command = "export-library-json"
315
318
@@ -434,7 +437,7 @@ func Main (_executable string, _argument0 string, _arguments []string, _environm
434
437
}
435
438
436
439
_cacheEnabled := true
437
- if _command == "parse-library" {
440
+ if ( _command == "parse-library" ) || ( _command == "parse-library-without-output" ) {
438
441
_cacheEnabled = false
439
442
}
440
443
if _cacheEnabled {
@@ -674,11 +677,15 @@ func Main (_executable string, _argument0 string, _arguments []string, _environm
674
677
return doExportScriptletLabels (_library , os .Stdout , _context )
675
678
676
679
677
- case "parse-library" :
680
+ case "parse-library" , "parse-library-without-output" :
678
681
if (_scriptlet != "" ) || (len (_cleanArguments ) != 0 ) {
679
682
return errorf (0x400ec122 , "export: unexpected scriptlet or arguments" )
680
683
}
681
- return doExportLibraryJson (_library , os .Stdout , _context )
684
+ if _command == "parse-library" {
685
+ return doExportLibraryJson (_library , os .Stdout , _context )
686
+ } else {
687
+ return nil
688
+ }
682
689
683
690
case "export-library-json" :
684
691
if (_scriptlet != "" ) || (len (_cleanArguments ) != 0 ) {
0 commit comments