tox throws “tox: error: unrecognized arguments:” for a seemingly valid command

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



tox throws “tox: error: unrecognized arguments:” for a seemingly valid command



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?





Is the -- supposed to be positioned before or after the arguments?
– user9455968
Aug 8 at 7: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 8 at 8:00


command=




1 Answer
1



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


-e


tox -e generated_p27, generated_p35
^^^ here






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

How to determine optimal route across keyboard