From 9e611cf3298c2a61cf992239ef03deedd7cf4ff4 Mon Sep 17 00:00:00 2001 From: "Paulo S. Costa" Date: Thu, 22 Sep 2022 18:59:47 -0700 Subject: [PATCH] Add unpacking argument to session.posargs example --- docs/tutorial.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial.rst b/docs/tutorial.rst index 918f829b..9189189d 100644 --- a/docs/tutorial.rst +++ b/docs/tutorial.rst @@ -329,7 +329,7 @@ You can also pass the notified session positional arguments: def consume_thing(session): # The 'consume' command has the arguments # sent to it from the 'prepare_thing' session - session.run("consume", "thing", session.posargs) + session.run("consume", "thing", *session.posargs) Note that this will only have the desired effect if selecting sessions to run via the ``--session/-s`` flag. If you simply run ``nox``, all selected sessions will be run.