Skip to content

Passing project path causes tox to fail. #31

Description

@terjekv

Bug description

Running tox adds the project path as an argument without prefixing it with --, which tox 4.2.3 (at least) doesn't like.

To Reproduce

(env) ➜  testproj main ✓$ tox -e format [...]/projects/private/testproj
usage: tox [-h] [--colored {yes,no}] [-v | -q] [--exit-and-dump-after seconds] [-c file] [--workdir dir] [--root dir] [--runner {virtualenv}] [--version] [--no-provision [REQ_JSON]] [--no-recreate-provision] [-r] [-x OVERRIDE]
           {run,r,run-parallel,p,depends,de,list,l,devenv,d,config,c,quickstart,q,exec,e,legacy,le} ...
tox: error: unrecognized arguments: [...]/projects/private/testproj
hint: if you tried to pass arguments to a command use -- to separate them from tox ones

Expected behavior

A working tox. :)

Additional context

Using tox -e format -- [...]/projects/private/testproj works.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions