MCPcopy
hub / github.com/pallets/click / _write_opts

Method _write_opts

src/click/core.py:3212–3223  ·  view source on GitHub ↗
(opts: cabc.Sequence[str])

Source from the content-addressed store, hash-verified

3210 any_prefix_is_slash = False
3211
3212 def _write_opts(opts: cabc.Sequence[str]) -> str:
3213 nonlocal any_prefix_is_slash
3214
3215 rv, any_slashes = join_options(opts)
3216
3217 if any_slashes:
3218 any_prefix_is_slash = True
3219
3220 if not self.is_flag and not self.count:
3221 rv += f" {self.make_metavar(ctx=ctx)}"
3222
3223 return rv
3224
3225 rv = [_write_opts(self.opts)]
3226

Callers

nothing calls this directly

Calls 2

join_optionsFunction · 0.85
make_metavarMethod · 0.45

Tested by

no test coverage detected