Skip to content

Commit b388346

Browse files
committed
Provide shorter name for --expand-build-script-invocation
Adds an --expand-invocation argument, which is now the preferred name for this feature. Leaves the original name in place in case someone is using it in a script.
1 parent 85b30c3 commit b388346

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/build-script

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,7 +1082,7 @@ def main_preset():
10821082
nargs="*",
10831083
metavar="SUBSTITUTION")
10841084
parser.add_argument(
1085-
"--expand-build-script-invocation",
1085+
"--expand-invocation", "--expand-build-script-invocation",
10861086
help="Print the expanded build-script invocation generated "
10871087
"by the preset, but do not run the preset",
10881088
action=arguments.action.optional_bool)
@@ -1166,7 +1166,7 @@ def main_preset():
11661166
build_script_args += ["--cmake-cxx-launcher", args.cmake_cxx_launcher]
11671167

11681168
printable_command = shell.quote_command(build_script_args)
1169-
if args.expand_build_script_invocation:
1169+
if args.expand_invocation:
11701170
print(printable_command)
11711171
else:
11721172
diagnostics.note('using preset "{}", which expands to \n\n{}\n'.format(

0 commit comments

Comments
 (0)