1

COMMAND:

tox -e generated_p27, generated_p35 -- -v -n 5 --dist=loadfile
--vcr-record-mode=once

OUTPUT

usage: tox [--version] [-h] [--help-ini] [-v] [--showconfig] [-l] [-a] [-c CONFIGFILE] [-e envlist] [--notest] [--sdistonly] [--installpkg PATH] [--develop] [-i URL] [--pre] [-r] [--result-json PATH] [--hashseed SEED] [--force-dep REQ] [--sitepackages] [--alwayscopy] [--skip-missing-interpreters] [--workdir PATH] [args [args ...]]
tox: error: unrecognized arguments: -- -v -n 5 --dist=loadfile --vcr-record-mode=once

Why is tox throwing an error for a seemingly valid command?

vvvvv
  • 25,404
  • 19
  • 49
  • 81
Viral Modi
  • 1,957
  • 1
  • 9
  • 18
  • Is the `--` supposed to be positioned before or after the arguments? –  Aug 08 '18 at 07:52
  • its supposed to be positioned after the envlist and before the arguments needed to be passed to the command in `command=` section in tox.ini – Viral Modi Aug 08 '18 at 08:00

1 Answers1

3

Option -e accepts one list of environments so remove space:

tox -e generated_p27, generated_p35
                    ^^^ here
phd
  • 82,685
  • 13
  • 120
  • 165