# LibTmux.ReleaseMap.lookup/2

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Elixir
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-elixir/blob/5bacf40788b43a5af27bb3656e727a921ba2db40/lib/libtmux/release_map.ex#L82
- **Page:** https://libtmux.org/en/elixir/pr-173/reference/libtmux-releasemap-lookup-2/

```
lookup(release, subject)
@spec lookup(String.t(), subject()) ::
        {:ok, definition()} | {:error, reason()}
```

Looks up a command, flag, option, hook or format in one tagged release.

Use the canonical command or the alias in its native command declaration.
Native setting aliases resolve to the canonical option name. Spell flags with one
leading dash, for example `{:flag, "split-window", "-l"}`. The flag's
`:argument` reports what the native argument parser accepts. Value syntax
and effects belong to the individual command. `:unlisted` means this
release's source inventory has no matching entry.

## Parameters

- `release` (`String.t()`)
- `subject` (`subject()`)
