Skip to content

Commit ba62986

Browse files
committed
Show only --no-build flag
1 parent 27df5d9 commit ba62986

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

spin/cmds/meson.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,12 @@ def _check_coverage_tool_installation(coverage_type: GcovReportFormat, build_dir
238238

239239

240240
build_option = click.option(
241-
"--build/--no-build",
242-
default=True,
243-
help="Whether to build or not before executing commands",
241+
"--no-build",
242+
"build",
243+
is_flag=True,
244+
callback=lambda ctx, param, value: not value, # store opposite value in `build` var
245+
default=False,
246+
help="Disable building before executing command",
244247
)
245248

246249
build_dir_option = click.option(

0 commit comments

Comments
 (0)