(parser: ToxParser)
| 25 | |
| 26 | @impl |
| 27 | def tox_add_option(parser: ToxParser) -> None: |
| 28 | our = parser.add_command("legacy", ["le"], "legacy entry-point command", legacy) |
| 29 | our.add_argument("--help-ini", "--hi", action="store_true", help="show live configuration", dest="show_config") |
| 30 | our.add_argument( |
| 31 | "--showconfig", |
| 32 | action="store_true", |
| 33 | help="show live configuration (by default all env, with -l only default targets, specific via TOXENV/-e)", |
| 34 | dest="show_config", |
| 35 | ) |
| 36 | our.add_argument( |
| 37 | "-a", |
| 38 | "--listenvs-all", |
| 39 | action="store_true", |
| 40 | help="show list of all defined environments (with description if verbose)", |
| 41 | dest="list_envs_all", |
| 42 | ) |
| 43 | our.add_argument( |
| 44 | "-l", |
| 45 | "--listenvs", |
| 46 | action="store_true", |
| 47 | help="show list of test environments (with description if verbose)", |
| 48 | dest="list_envs", |
| 49 | ) |
| 50 | our.add_argument( |
| 51 | "--devenv", |
| 52 | help="sets up a development environment at ENVDIR based on the env's tox configuration specified by" |
| 53 | "`-e` (-e defaults to py)", |
| 54 | dest="devenv_path", |
| 55 | metavar="ENVDIR", |
| 56 | default=None, |
| 57 | of_type=Path, |
| 58 | ) |
| 59 | register_env_select_flags(our, default=CliEnv()) |
| 60 | env_run_create_flags(our, mode="legacy") |
| 61 | parallel_flags(our, default_parallel=OFF_VALUE, no_args=True) |
| 62 | our.add_argument( |
| 63 | "--pre", |
| 64 | action="store_true", |
| 65 | help="deprecated use PIP_PRE in set_env instead - install pre-releases and development versions of" |
| 66 | "dependencies; this will set PIP_PRE=1 environment variable", |
| 67 | ) |
| 68 | our.add_argument( |
| 69 | "--force-dep", |
| 70 | action="append", |
| 71 | metavar="req", |
| 72 | default=[], |
| 73 | help="Forces a certain version of one of the dependencies when configuring the virtual environment. REQ " |
| 74 | "Examples 'pytest<6.1' or 'django>=2.2'.", |
| 75 | type=Requirement, |
| 76 | ) |
| 77 | our.add_argument( |
| 78 | "--sitepackages", |
| 79 | action="store_true", |
| 80 | help="deprecated use VIRTUALENV_SYSTEM_SITE_PACKAGES=1, override sitepackages setting to True in all envs", |
| 81 | dest="site_packages", |
| 82 | ) |
| 83 | our.add_argument( |
| 84 | "--alwayscopy", |
nothing calls this directly
no test coverage detected
searching dependent graphs…