MCPcopy
hub / github.com/tox-dev/tox / tox_add_option

Function tox_add_option

src/tox/session/cmd/list_env.py:18–22  ·  view source on GitHub ↗
(parser: ToxParser)

Source from the content-addressed store, hash-verified

16
17@impl
18def tox_add_option(parser: ToxParser) -> None:
19 our = parser.add_command("list", ["l"], "list environments", list_env, inherit=frozenset({CORE}))
20 our.add_argument("--no-desc", action="store_true", help="do not show description", dest="list_no_description")
21 d = register_env_select_flags(our, default=None, group_only=True)
22 d.add_argument("-d", action="store_true", help="list just default envs", dest="list_default_only")
23
24
25def list_env(state: State) -> int:

Callers

nothing calls this directly

Calls 3

add_commandMethod · 0.80
add_argumentMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…