@@ -235,7 +235,9 @@ def _check_coverage_tool_installation(coverage_type: GcovReportFormat):
235235 help = "Enable C code coverage using `gcov`. Use `spin test --gcov` to generate reports." ,
236236)
237237@click .argument ("meson_args" , nargs = - 1 )
238- def build (meson_args , jobs = None , clean = False , verbose = False , gcov = False , quiet = False ):
238+ def build (
239+ * , meson_args , jobs = None , clean = False , verbose = False , gcov = False , quiet = False
240+ ):
239241 """🔧 Build package with Meson/ninja
240242
241243 The package is installed to `build-install`.
@@ -370,6 +372,7 @@ def _get_configured_command(command_name):
370372@click .pass_context
371373def test (
372374 ctx ,
375+ * ,
373376 pytest_args ,
374377 n_jobs ,
375378 tests ,
@@ -543,7 +546,7 @@ def test(
543546@click .option ("--code" , "-c" , help = "Python program passed in as a string" )
544547@click .argument ("gdb_args" , nargs = - 1 )
545548@click .pass_context
546- def gdb (ctx , code , gdb_args ):
549+ def gdb (ctx , * , code , gdb_args ):
547550 """👾 Execute code through GDB
548551
549552 spin gdb -c 'import numpy as np; print(np.__version__)'
@@ -595,7 +598,7 @@ def gdb(ctx, code, gdb_args):
595598@click .command ()
596599@click .argument ("ipython_args" , nargs = - 1 )
597600@click .pass_context
598- def ipython (ctx , ipython_args ):
601+ def ipython (ctx , * , ipython_args ):
599602 """💻 Launch IPython shell with PYTHONPATH set
600603
601604 IPYTHON_ARGS are passed through directly to IPython, e.g.:
@@ -649,7 +652,7 @@ def shell(ctx, shell_args=[]):
649652@click .command ()
650653@click .argument ("python_args" , nargs = - 1 )
651654@click .pass_context
652- def python (ctx , python_args ):
655+ def python (ctx , * , python_args ):
653656 """🐍 Launch Python shell with PYTHONPATH set
654657
655658 PYTHON_ARGS are passed through directly to Python, e.g.:
@@ -690,7 +693,7 @@ def python(ctx, python_args):
690693@click .command (context_settings = {"ignore_unknown_options" : True })
691694@click .argument ("args" , nargs = - 1 )
692695@click .pass_context
693- def run (ctx , args ):
696+ def run (ctx , * , args ):
694697 """🏁 Run a shell command with PYTHONPATH set
695698
696699 \b
@@ -764,7 +767,7 @@ def run(ctx, args):
764767)
765768@click .option ("--jobs" , "-j" , default = "auto" , help = "Number of parallel build jobs" )
766769@click .pass_context
767- def docs (ctx , sphinx_target , clean , first_build , jobs , sphinx_gallery_plot ):
770+ def docs (ctx , * , sphinx_target , clean , first_build , jobs , sphinx_gallery_plot ):
768771 """📖 Build Sphinx documentation
769772
770773 By default, SPHINXOPTS="-W", raising errors on warnings.
@@ -847,7 +850,7 @@ def docs(ctx, sphinx_target, clean, first_build, jobs, sphinx_gallery_plot):
847850@click .option ("--code" , "-c" , help = "Python program passed in as a string" )
848851@click .argument ("lldb_args" , nargs = - 1 )
849852@click .pass_context
850- def lldb (ctx , code , lldb_args ):
853+ def lldb (ctx , * , code , lldb_args ):
851854 """👾 Execute code through LLDB
852855
853856 spin lldb -c 'import numpy as np; print(np.__version__)'
0 commit comments