Skip to content

Conversation

Peter554
Copy link
Contributor

Consider a task:

test: cmds: - pytest {{.CLI_ARGS}}

Running task test -- -m "not foo" should be equivalent to running pytest -m "not foo". However, with the current implementation the quoting of CLI_ARGS is lost and the task executes python -m not foo, which results in an error.

Consider a task: test: cmds: - pytest {{.CLI_ARGS}} Running `task test -- -m "not foo"` should be equivalent to running `pytest -m "not foo"`. However, with the current implementation the quoting of CLI_ARGS is lost and the task executes `python -m not foo`, which results in an error.
@andreynering
Copy link
Member

Hi @Peter554, thanks for the PR!

Good catch! This was really missed by me at the time.

@andreynering andreynering merged commit 846c27d into go-task:master Nov 28, 2021
andreynering added a commit that referenced this pull request Nov 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants