# options.OptionSchema.choices

- **Module:** options.OptionSchema
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/options.rs#L183
- **Page:** https://libtmux.org/en/rs/latest/reference/options-optionschema-choices/

```
options.OptionSchema.choices(self) -> &'static [&'static str]
```

Return the words a [`OptionKind::Choice`] option accepts, in tmux's order.

Empty for every other kind. tmux compares a choice exactly, so case
matters.

## Example

```rust
use libtmux::option_schema;

let keys = option_schema("mode-keys").expect("a documented option");
assert_eq!(keys.choices(), ["emacs", "vi"]);

let limit = option_schema("history-limit").expect("a documented option");
assert!(limit.choices().is_empty());
```
