# libtmux._internal.log_context._scan_subcommand_flags

- **Module:** libtmux._internal.log_context
- **Package:** libtmux
- **Language:** Python
- **Kind:** function
- **Source:** https://github.com/tmux-python/libtmux/blob/efdbb5637666b166358772ecc737b3807beab21e/src/libtmux/_internal/log_context.py#L327
- **Page:** https://libtmux.org/en/py/latest/reference/libtmux-_internal-log_context-_scan_subcommand_flags/

```
libtmux._internal.log_context._scan_subcommand_flags(
    out: list[str],
    value_flags: frozenset[str],
    redact_e_flag: bool = False,
) -> tuple[set[str], list[int]]
```

Parse short-flag clusters per ``arguments.c`` into flags and positionals.

## Parameters

- `out` (`list[str]`)
- `value_flags` (`frozenset[str]`)
- `redact_e_flag` (`bool`)
  Default: `False`.
