Skip to content

Commit

Permalink
Add unpacking argument to session.posargs example (#653)
Browse files Browse the repository at this point in the history
  • Loading branch information
paw-lu committed Oct 7, 2022
1 parent 07fb499 commit 49f2de0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorial.rst
Expand Up @@ -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.

Expand Down

0 comments on commit 49f2de0

Please sign in to comment.