# plan.ops.options.SetOption.declared_scope

- **Module:** plan.ops.options.SetOption
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/8a648c0894dfffc9303583f753b6c8ae01f2fe76/crates/libtmux/src/plan/ops/options.rs#L57
- **Page:** https://libtmux.org/reference/rs/plan-ops-options-setoption-declared_scope/

```
plan.ops.options.SetOption.declared_scope(self) -> Option<(&OsStr, crate::OptionScope)>
```

Where this step tells tmux to keep the option, when it names a place.

`None` for a global write: tmux keeps a `-g` write in the global table
belonging to whatever scope the option has, so "global" is true of
wherever it lands and there is nothing to be wrong about.
