File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -834,6 +834,11 @@ def main_preset():
834
834
help = "'name=value' pairs that are substituted in the preset" ,
835
835
nargs = "*" ,
836
836
metavar = "SUBSTITUTION" )
837
+ parser .add_argument (
838
+ "--expand-build-script-invocation" ,
839
+ help = "Print the expanded build-script invocation generated "
840
+ "by the preset, but do not run the preset" ,
841
+ action = arguments .action .optional_bool )
837
842
args = parser .parse_args ()
838
843
839
844
if len (args .preset_file_names ) == 0 :
@@ -872,8 +877,10 @@ def main_preset():
872
877
"using preset '" + args .preset + "', which expands to \n \n " +
873
878
shell .quote_command (build_script_args ) + "\n " )
874
879
875
- call_without_sleeping (build_script_args )
880
+ if args .expand_build_script_invocation :
881
+ return 0
876
882
883
+ call_without_sleeping (build_script_args )
877
884
return 0
878
885
879
886
You can’t perform that action at this time.
0 commit comments