(opts: cabc.Sequence[str])
| 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 |
nothing calls this directly
no test coverage detected