@@ -241,13 +241,20 @@ def _check_coverage_tool_installation(coverage_type: GcovReportFormat, build_dir
241241 "--build-dir" ,
242242 default = "build" ,
243243 show_envvar = True ,
244+ metavar = "BUILD_DIR" ,
244245 envvar = "SPIN_BUILD_DIR" ,
245246 help = "Meson build directory; package is installed into './{build-dir}-install'." ,
246247)
247248
248249
249250@click .command ()
250- @click .option ("-j" , "--jobs" , help = "Number of parallel tasks to launch" , type = int )
251+ @click .option (
252+ "-j" ,
253+ "--jobs" ,
254+ metavar = "N_JOBS" ,
255+ help = "Number of parallel tasks to launch" ,
256+ type = int ,
257+ )
251258@click .option ("--clean" , is_flag = True , help = "Clean build directory before build" )
252259@click .option (
253260 "-v" , "--verbose" , is_flag = True , help = "Print detailed build and installation output"
@@ -261,6 +268,7 @@ def _check_coverage_tool_installation(coverage_type: GcovReportFormat, build_dir
261268 "--prefix" ,
262269 help = "The build prefix, passed directly to meson." ,
263270 type = str ,
271+ metavar = "PREFIX" ,
264272 default = DEFAULT_PREFIX ,
265273)
266274@click .argument ("meson_args" , nargs = - 1 )
@@ -625,7 +633,9 @@ def test(
625633
626634
627635@click .command ()
628- @click .option ("--code" , "-c" , help = "Python program passed in as a string" )
636+ @click .option (
637+ "--code" , "-c" , metavar = "CODE" , help = "Python program passed in as a string"
638+ )
629639@click .argument ("gdb_args" , nargs = - 1 )
630640@build_dir_option
631641@click .pass_context
@@ -872,7 +882,13 @@ def attach_sigint():
872882 default = True ,
873883 help = "Sphinx gallery: enable/disable plots" ,
874884)
875- @click .option ("--jobs" , "-j" , default = "auto" , help = "Number of parallel build jobs" )
885+ @click .option (
886+ "--jobs" ,
887+ "-j" ,
888+ default = "auto" ,
889+ metavar = "N_JOBS" ,
890+ help = "Number of parallel build jobs" ,
891+ )
876892@build_dir_option
877893@click .pass_context
878894def docs (
@@ -975,7 +991,9 @@ def docs(
975991
976992
977993@click .command ()
978- @click .option ("--code" , "-c" , help = "Python program passed in as a string" )
994+ @click .option (
995+ "--code" , "-c" , metavar = "CODE" , help = "Python program passed in as a string"
996+ )
979997@click .argument ("lldb_args" , nargs = - 1 )
980998@build_dir_option
981999@click .pass_context
0 commit comments